X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Ftreemodel.h;h=2b7928c53a3c3e1624c56c69ab08a03f26272060;hp=a4039843b40004e89d1612b5dcc90fc0c85bf04f;hb=38db2f48a30f697ef8c0b61dfa6345e8a53336fd;hpb=13b2affbdccd1d52479e49affdb81a77258392a6 diff --git a/src/client/treemodel.h b/src/client/treemodel.h index a4039843..2b7928c5 100644 --- a/src/client/treemodel.h +++ b/src/client/treemodel.h @@ -21,7 +21,9 @@ #ifndef _TREEMODEL_H_ #define _TREEMODEL_H_ -#include +#include +#include +#include /***************************************** * general item used in the Tree Model @@ -69,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; };