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();
}
this, SLOT(join(QList<IrcUser *>)));
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)),
emit dataChanged();
}
-void ChannelBufferItem::ircChannelDestroyed() {
+void ChannelBufferItem::ircChannelParted() {
Q_CHECK_PTR(_ircChannel);
disconnect(_ircChannel, 0, this, 0);
_ircChannel = 0;
_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()));
}
return QString("<p> %1 </p>").arg(toolTip.join("<br />"));
}
-// void IrcUserItem::ircUserDestroyed() {
-// parent()->removeChild(this);
-// if(parent()->childCount() == 0)
-// parent()->parent()->removeChild(parent());
-// }
-
/*****************************************
* NetworkModel
*****************************************/