X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Ftreemodel.h;h=2b7928c53a3c3e1624c56c69ab08a03f26272060;hb=44b22c4419f478a20f6324f9f3a700a2dec56302;hp=1941602f11b50e3a0b201f2e5a60fdf440ec1956;hpb=0ac9ce4d7cf768d13993d6aa1d6b791c4149a843;p=quassel.git diff --git a/src/client/treemodel.h b/src/client/treemodel.h index 1941602f..2b7928c5 100644 --- a/src/client/treemodel.h +++ b/src/client/treemodel.h @@ -71,9 +71,12 @@ public: int rowCount(const QModelIndex &parent = QModelIndex()) const; int columnCount(const QModelIndex &parent = QModelIndex()) const; + void clear(); + protected: bool removeRow(int row, const QModelIndex &parent = QModelIndex()); - + bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex()); + TreeItem *rootItem; };