X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fnetworkmodel.h;h=634c402e121f87cdf36f1b074ec64e83b386749e;hb=c0e4730a50f812cd3795d47561357ff221094f8c;hp=861d07cf81008993eb5ccaf10ba7b6557530cf75;hpb=e9f87d7542d4a9fe0e9c63dec96e93d270667ecd;p=quassel.git diff --git a/src/client/networkmodel.h b/src/client/networkmodel.h index 861d07cf..634c402e 100644 --- a/src/client/networkmodel.h +++ b/src/client/networkmodel.h @@ -100,7 +100,7 @@ private: QString _bufferName; Buffer::ActivityLevel _activity; - QPointer _ircChannel; + IrcChannel *_ircChannel; }; @@ -146,12 +146,12 @@ private: *****************************************/ class UserCategoryItem : public PropertyMapItem { Q_OBJECT - Q_PROPERTY(QString categoryId READ categoryId) + Q_PROPERTY(QString categoryName READ categoryName) public: UserCategoryItem(int category, AbstractTreeItem *parent); - QString categoryId(); + QString categoryName() const; virtual quint64 id() const; virtual QVariant data(int column, int role) const; @@ -163,13 +163,7 @@ public: private: int _category; - struct Category { - QChar mode; - QString displayString; - inline Category(QChar mode_, QString displayString_) : mode(mode_), displayString(displayString_) {}; - }; - - static const QList categories; + static const QList categories; }; /***************************************** @@ -208,7 +202,7 @@ class NetworkModel : public TreeModel { public: enum myRoles { - BufferTypeRole = Qt::UserRole, + BufferTypeRole = TreeModel::UserRole, ItemActiveRole, BufferActivityRole, BufferIdRole,