summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
17fa75d)
... and yes I really do think that I'm the only one who's updating the version numbers...
}
void BufferItem::removeUserFromCategory(IrcUser *ircUser) {
}
void BufferItem::removeUserFromCategory(IrcUser *ircUser) {
+ Q_ASSERT(_ircChannel);
+
UserCategoryItem *categoryItem = 0;
for(int i = 0; i < childCount(); i++) {
categoryItem = qobject_cast<UserCategoryItem *>(child(i));
UserCategoryItem *categoryItem = 0;
for(int i = 0; i < childCount(); i++) {
categoryItem = qobject_cast<UserCategoryItem *>(child(i));
*****************************************/
// we hardcode this even though we have PREFIX in network... but that wouldn't help with mapping modes to
// category strings anyway.
*****************************************/
// we hardcode this even though we have PREFIX in network... but that wouldn't help with mapping modes to
// category strings anyway.
-const QList<UserCategoryItem::Category> UserCategoryItem::categories = QList<UserCategoryItem::Category>() << UserCategoryItem::Category('q', "Owners")
- << UserCategoryItem::Category('a', "Admins")
- << UserCategoryItem::Category('a', "Admins")
- << UserCategoryItem::Category('o', "Operators")
- << UserCategoryItem::Category('h', "Half-Ops")
- << UserCategoryItem::Category('v', "Voiced");
+const QList<UserCategoryItem::Category> UserCategoryItem::categories = QList<UserCategoryItem::Category>()
+ << UserCategoryItem::Category('q', "Owners")
+ << UserCategoryItem::Category('a', "Admins")
+ << UserCategoryItem::Category('a', "Admins")
+ << UserCategoryItem::Category('o', "Operators")
+ << UserCategoryItem::Category('h', "Half-Ops")
+ << UserCategoryItem::Category('v', "Voiced");
UserCategoryItem::UserCategoryItem(int category, AbstractTreeItem *parent)
: PropertyMapItem(QStringList() << "categoryId", parent),
UserCategoryItem::UserCategoryItem(int category, AbstractTreeItem *parent)
: PropertyMapItem(QStringList() << "categoryId", parent),
: PropertyMapItem(QStringList() << "nickName", parent),
_ircUser(ircUser)
{
: PropertyMapItem(QStringList() << "nickName", parent),
_ircUser(ircUser)
{
- connect(ircUser, SIGNAL(destroyed()),
- this, SLOT(ircUserDestroyed()));
+ // we don't need to handle the ircUser's destroyed signal since it's automatically removed
+ // by the IrcChannel::ircUserParted();
connect(ircUser, SIGNAL(nickSet(QString)),
this, SLOT(setNick(QString)));
connect(ircUser, SIGNAL(nickSet(QString)),
this, SLOT(setNick(QString)));
Q_UNUSED(newNick);
emit dataChanged(0);
}
Q_UNUSED(newNick);
emit dataChanged(0);
}
-void IrcUserItem::ircUserDestroyed() {
- parent()->removeChildById(id());
- // deleteLater();
-}
/*****************************************
* NetworkModel
/*****************************************
* NetworkModel
virtual quint64 id() const;
virtual QVariant data(int column, int role) const;
virtual quint64 id() const;
virtual QVariant data(int column, int role) const;
private slots:
void setNick(QString newNick);
private slots:
void setNick(QString newNick);
- void ircUserDestroyed();
private:
IrcUser *_ircUser;
private:
IrcUser *_ircUser;
quasselVersion = "0.2.0-pre";
quasselDate = "2008-01-23";
quasselVersion = "0.2.0-pre";
quasselDate = "2008-01-23";
//! Minimum client build number the core needs
clientBuildNeeded = 358;
//! Minimum client build number the core needs
clientBuildNeeded = 358;