X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Finputwidget.cpp;h=33fe3a4e306a983abdc9007958f5f40723003341;hb=dd8d82a90c136fa1e56d7f72781881cd5099574f;hp=340f9e59154e094f26fb22566fda0c4e04d36a1e;hpb=1b9dc90e54c1c7c2012decfb87cce80dbae60be9;p=quassel.git diff --git a/src/qtui/inputwidget.cpp b/src/qtui/inputwidget.cpp index 340f9e59..33fe3a4e 100644 --- a/src/qtui/inputwidget.cpp +++ b/src/qtui/inputwidget.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2010 by the Quassel Project * + * Copyright (C) 2005-2012 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -132,6 +132,7 @@ InputWidget::InputWidget(QWidget *parent) activateInputline->setText(tr("Focus Input Line")); activateInputline->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_L)); + connect(inputLine(), SIGNAL(textEntered(QString)), SLOT(onTextEntered(QString)), Qt::QueuedConnection); // make sure the line is already reset, bug #984 connect(inputLine(), SIGNAL(currentCharFormatChanged(QTextCharFormat)), this, SLOT(currentCharFormatChanged(QTextCharFormat))); } @@ -413,7 +414,7 @@ void InputWidget::changeNick(const QString &newNick) const { Client::userInput(BufferInfo::fakeStatusBuffer(net->networkId()), QString("/NICK %1").arg(newNick)); } -void InputWidget::on_inputEdit_textEntered(const QString &text) { +void InputWidget::onTextEntered(const QString &text) { Client::userInput(currentBufferInfo(), text); ui.boldButton->setChecked(false); ui.underlineButton->setChecked(false);