minor internal fixes
authorMarcus Eggenberger <egs@quassel-irc.org>
Sun, 27 Jul 2008 12:48:06 +0000 (14:48 +0200)
committerMarcus Eggenberger <egs@quassel-irc.org>
Sun, 27 Jul 2008 12:48:06 +0000 (14:48 +0200)
src/client/networkmodel.cpp
src/client/networkmodel.h

index 1d54774..11ba3fe 100644 (file)
@@ -566,12 +566,9 @@ IrcUserItem::IrcUserItem(IrcUser *ircUser, AbstractTreeItem *parent)
     _ircUser(ircUser)
 {
   setObjectName(ircUser->nick());  
-  // we don't need to handle the ircUser's destroyed signal since it's automatically removed
-  // by the IrcChannel::ircUserParted();
-
   connect(ircUser, SIGNAL(destroyed()), this, SLOT(ircUserDestroyed()));
-  connect(ircUser, SIGNAL(nickSet(QString)), this, SLOT(setNick(QString)));
-  connect(ircUser, SIGNAL(awaySet(bool)), this, SLOT(setAway(bool)));
+  connect(ircUser, SIGNAL(nickSet(QString)), this, SIGNAL(dataChanged()));
+  connect(ircUser, SIGNAL(awaySet(bool)), this, SIGNAL(dataChanged()));
 }
 
 QVariant IrcUserItem::data(int column, int role) const {
@@ -622,16 +619,6 @@ QString IrcUserItem::toolTip(int column) const {
   return QString("<p> %1 </p>").arg(toolTip.join("<br />"));
 }
 
-void IrcUserItem::setNick(QString newNick) {
-  Q_UNUSED(newNick);
-  emit dataChanged(0);
-}
-
-void IrcUserItem::setAway(bool away) {
-  Q_UNUSED(away);
-  emit dataChanged(0);
-}
-
 /*****************************************
  * NetworkModel
  *****************************************/
index 43f9552..2c732e0 100644 (file)
@@ -232,8 +232,6 @@ public:
 
 private slots:
   void ircUserDestroyed() { parent()->removeChild(this); }
-  void setNick(QString newNick);
-  void setAway(bool);
 
 private:
   QPointer<IrcUser> _ircUser;