From 3037d69a83403235fd4179f9c14d08d9cd382212 Mon Sep 17 00:00:00 2001 From: Marcus Eggenberger Date: Sun, 27 Jul 2008 14:48:06 +0200 Subject: [PATCH] minor internal fixes --- src/client/networkmodel.cpp | 17 ++--------------- src/client/networkmodel.h | 2 -- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/src/client/networkmodel.cpp b/src/client/networkmodel.cpp index 1d54774a..11ba3fe0 100644 --- a/src/client/networkmodel.cpp +++ b/src/client/networkmodel.cpp @@ -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("

%1

").arg(toolTip.join("
")); } -void IrcUserItem::setNick(QString newNick) { - Q_UNUSED(newNick); - emit dataChanged(0); -} - -void IrcUserItem::setAway(bool away) { - Q_UNUSED(away); - emit dataChanged(0); -} - /***************************************** * NetworkModel *****************************************/ diff --git a/src/client/networkmodel.h b/src/client/networkmodel.h index 43f9552d..2c732e00 100644 --- a/src/client/networkmodel.h +++ b/src/client/networkmodel.h @@ -232,8 +232,6 @@ public: private slots: void ircUserDestroyed() { parent()->removeChild(this); } - void setNick(QString newNick); - void setAway(bool); private: QPointer _ircUser; -- 2.20.1