X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Ftreemodel.h;h=6346d4f50850b9eecc785cdff467d0e3ca5a2304;hp=27360ba1c0e5ec4267f60418adcadd70b9df0a8b;hb=ef0e65458bf4e1cbc01399fe0e025a5b4fd327dc;hpb=012df68ce8a743a71bfe3beda529a21c02daddb6 diff --git a/src/client/treemodel.h b/src/client/treemodel.h index 27360ba1..6346d4f5 100644 --- a/src/client/treemodel.h +++ b/src/client/treemodel.h @@ -47,6 +47,8 @@ public: int childCount() const; int columnCount() const; virtual QVariant data(int column, int role) const; + virtual Qt::ItemFlags flags() const; + virtual void setFlags(Qt::ItemFlags); int row() const; TreeItem *parent(); @@ -55,6 +57,7 @@ protected: QHash childHash; // uint to be compatible to qHash functions TreeItem *parentItem; QList itemData; + Qt::ItemFlags _flags; }; @@ -82,7 +85,7 @@ public: protected: bool removeRow(int row, const QModelIndex &parent = QModelIndex()); bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex()); - + TreeItem *rootItem; };