X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fbuffertreemodel.h;h=56981fca154773ad8db848a2da67c89cc494958a;hp=3f4e5974ccaf5881139884b6e2237682204f0682;hb=c7ad7451b1e899ba0de2ded9ac08359dff5cca61;hpb=012df68ce8a743a71bfe3beda529a21c02daddb6 diff --git a/src/client/buffertreemodel.h b/src/client/buffertreemodel.h index 3f4e5974..56981fca 100644 --- a/src/client/buffertreemodel.h +++ b/src/client/buffertreemodel.h @@ -1,4 +1,4 @@ -/*************************************************************************** + /*************************************************************************** * Copyright (C) 2005-07 by The Quassel Team * * devel@quassel-irc.org * * * @@ -36,12 +36,13 @@ public: BufferTreeItem(Buffer *, TreeItem *parent = 0); virtual uint id() const; - QVariant data(int column, int role) const; + virtual Qt::ItemFlags flags() const; + Buffer *buffer() const { return buf; } void setActivity(const Buffer::ActivityLevel &); -protected: +private: QString text(int column) const; QColor foreground(int column) const; @@ -59,6 +60,7 @@ public: NetworkTreeItem(const QString &, TreeItem *parent = 0); virtual uint id() const; + virtual Qt::ItemFlags flags() const; private: QString net; @@ -81,8 +83,6 @@ public: BufferTreeModel(QObject *parent = 0); static QList defaultHeader(); - - virtual Qt::ItemFlags flags(const QModelIndex &index) const; public slots: void bufferUpdated(Buffer *);