X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fnetworkmodel.cpp;h=c75dd576041d8ef1c9ba0a201f8d7b852f505a99;hb=c6fc5ae878a4f92b658c3da2861bcc7da9c2594f;hp=f58dc971d618a96a2963287fbda52021084e1e6c;hpb=e3ad107e9783ac5ca4064fd7ce3cac7ff092e316;p=quassel.git diff --git a/src/client/networkmodel.cpp b/src/client/networkmodel.cpp index f58dc971..c75dd576 100644 --- a/src/client/networkmodel.cpp +++ b/src/client/networkmodel.cpp @@ -363,12 +363,12 @@ QString QueryBufferItem::toolTip(int column) const { void QueryBufferItem::attachIrcUser(IrcUser *ircUser) { _ircUser = ircUser; - connect(_ircUser, SIGNAL(destroyed()), this, SLOT(ircUserDestroyed())); + connect(_ircUser, SIGNAL(quited()), this, SLOT(ircUserQuited())); connect(_ircUser, SIGNAL(awaySet(bool)), this, SIGNAL(dataChanged())); emit dataChanged(); } -void QueryBufferItem::ircUserDestroyed() { +void QueryBufferItem::ircUserQuited() { _ircUser = 0; emit dataChanged(); } @@ -442,8 +442,8 @@ void ChannelBufferItem::attachIrcChannel(IrcChannel *ircChannel) { this, SLOT(join(QList))); connect(ircChannel, SIGNAL(ircUserParted(IrcUser *)), this, SLOT(part(IrcUser *))); - connect(ircChannel, SIGNAL(destroyed()), - this, SLOT(ircChannelDestroyed())); + connect(ircChannel, SIGNAL(parted()), + this, SLOT(ircChannelParted())); connect(ircChannel, SIGNAL(ircUserModesSet(IrcUser *, QString)), this, SLOT(userModeChanged(IrcUser *))); connect(ircChannel, SIGNAL(ircUserModeAdded(IrcUser *, QString)), @@ -457,7 +457,7 @@ void ChannelBufferItem::attachIrcChannel(IrcChannel *ircChannel) { emit dataChanged(); } -void ChannelBufferItem::ircChannelDestroyed() { +void ChannelBufferItem::ircChannelParted() { Q_CHECK_PTR(_ircChannel); disconnect(_ircChannel, 0, this, 0); _ircChannel = 0; @@ -672,7 +672,7 @@ IrcUserItem::IrcUserItem(IrcUser *ircUser, AbstractTreeItem *parent) _ircUser(ircUser) { setObjectName(ircUser->nick()); - connect(ircUser, SIGNAL(destroyed()), this, SLOT(ircUserDestroyed())); + connect(ircUser, SIGNAL(quited()), this, SLOT(ircUserQuited())); connect(ircUser, SIGNAL(nickSet(QString)), this, SIGNAL(dataChanged())); connect(ircUser, SIGNAL(awaySet(bool)), this, SIGNAL(dataChanged())); } @@ -729,12 +729,6 @@ QString IrcUserItem::toolTip(int column) const { return QString("

%1

").arg(toolTip.join("
")); } -// void IrcUserItem::ircUserDestroyed() { -// parent()->removeChild(this); -// if(parent()->childCount() == 0) -// parent()->parent()->removeChild(parent()); -// } - /***************************************** * NetworkModel *****************************************/