treemodels can now be cleared
[quassel.git] / src / client / treemodel.h
index a403984..f979d11 100644 (file)
@@ -21,7 +21,9 @@
 #ifndef _TREEMODEL_H_
 #define _TREEMODEL_H_
 
 #ifndef _TREEMODEL_H_
 #define _TREEMODEL_H_
 
-#include <QtCore>
+#include <QList>
+#include <QVariant>
+#include <QAbstractItemModel>
 
 /*****************************************
  *  general item used in the Tree Model
 
 /*****************************************
  *  general item used in the Tree Model
@@ -71,6 +73,8 @@ public:
 
 protected:
   bool removeRow(int row, const QModelIndex &parent = QModelIndex());
 
 protected:
   bool removeRow(int row, const QModelIndex &parent = QModelIndex());
+  bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex());
+  void clear();
   
   TreeItem *rootItem;
 };
   
   TreeItem *rootItem;
 };