X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Ftreemodel.h;h=c72021683730a35fdeaa2f2b68b0278eb9aee70d;hp=6346d4f50850b9eecc785cdff467d0e3ca5a2304;hb=6250a7e25eb2c0a6794d4aa5679c70082d825031;hpb=419189f88aa62da0b3dc4564554b2b85f9aa6524 diff --git a/src/client/treemodel.h b/src/client/treemodel.h index 6346d4f5..c7202168 100644 --- a/src/client/treemodel.h +++ b/src/client/treemodel.h @@ -42,21 +42,33 @@ public: void removeChild(int row); virtual uint id() const; + TreeItem *child(int row) const; TreeItem *childById(const uint &) const; + int childCount() const; int columnCount() const; + virtual QVariant data(int column, int role) const; - virtual Qt::ItemFlags flags() const; - virtual void setFlags(Qt::ItemFlags); + + Qt::ItemFlags flags() const; + void setFlags(Qt::ItemFlags); + int row() const; TreeItem *parent(); - + + +private slots: + void childDestroyed(); + + protected: - QList childItems; - QHash childHash; // uint to be compatible to qHash functions - TreeItem *parentItem; QList itemData; + +private: + QList _childItems; + QHash _childHash; // uint to be compatible to qHash functions + TreeItem *_parentItem; Qt::ItemFlags _flags; };