Slot is gone from Client
authorManuel Nickschas <sputnick@quassel-irc.org>
Wed, 25 Feb 2009 17:38:21 +0000 (18:38 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 25 Feb 2009 17:41:14 +0000 (18:41 +0100)
src/qtui/inputwidget.cpp
src/qtui/inputwidget.h

index 3c7bec5..30cfcc7 100644 (file)
@@ -37,7 +37,6 @@ InputWidget::InputWidget(QWidget *parent)
   ui.setupUi(this);
   connect(ui.inputEdit, SIGNAL(sendText(QString)), this, SLOT(sendText(QString)));
   connect(ui.ownNick, SIGNAL(activated(QString)), this, SLOT(changeNick(QString)));
-  connect(this, SIGNAL(userInput(BufferInfo, QString)), Client::instance(), SIGNAL(sendInput(BufferInfo, QString)));
   setFocusProxy(ui.inputEdit);
 
   ui.ownNick->setSizeAdjustPolicy(QComboBox::AdjustToContents);
@@ -219,11 +218,11 @@ void InputWidget::changeNick(const QString &newNick) const {
   const Network *net = currentNetwork();
   if(!net || net->isMyNick(newNick))
     return;
-  emit userInput(currentBufferInfo(), QString("/nick %1").arg(newNick));
+  sendText(QString("/NICK %1").arg(newNick));
 }
 
-void InputWidget::sendText(QString text) {
-  emit userInput(currentBufferInfo(), text);
+void InputWidget::sendText(const QString &text) const {
+  Client::userInput(currentBufferInfo(), text);
 }
 
 
index 297830b..fae3d7f 100644 (file)
@@ -49,7 +49,7 @@ protected slots:
 
 private slots:
   void setCustomFont(const QVariant &font);
-  void sendText(QString text);
+  void sendText(const QString &text) const;
   void changeNick(const QString &newNick) const;
 
   void setNetwork(NetworkId networkId);
@@ -60,12 +60,9 @@ private slots:
 
   BufferInfo currentBufferInfo() const;
 
-signals:
-  void userInput(BufferInfo, QString msg) const;
-
 private:
   Ui::InputWidget ui;
-  
+
   NetworkId _networkId;
   IdentityId _identityId;
 };