X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Ftreemodel.h;h=a8c8a9940bd1e3497974023fa4b547f16f18078b;hp=da1f5fd823291d0f660616c7def3d29962931a9b;hb=c4507cf512b6fd04e5c75a7ac00b9c2888fb646f;hpb=a9b3edc811552b39dafb8fb01699490e5bcfb014 diff --git a/src/client/treemodel.h b/src/client/treemodel.h index da1f5fd8..a8c8a994 100644 --- a/src/client/treemodel.h +++ b/src/client/treemodel.h @@ -43,6 +43,7 @@ public: void removeChild(int column, int row); void removeChild(int row); + void removeAllChilds(); virtual quint64 id() const; @@ -69,7 +70,11 @@ public: signals: void dataChanged(int column = -1); void newChild(AbstractTreeItem *); - void childDestroyed(int row); + void childRemoved(int row); + void childsRemoved(int firstRow, int lastRow); + + void beginRemoveChilds(int firstRow, int lastRow); + void endRemoveChilds(); private slots: void childDestroyed(); @@ -77,7 +82,6 @@ private slots: private: QHash > _childItems; QHash > _childHash; // uint to be compatible to qHash functions FIXME test this - AbstractTreeItem *_parentItem; Qt::ItemFlags _flags; int defaultColumn() const; @@ -150,7 +154,12 @@ public: private slots: void itemDataChanged(int column = -1); void newChild(AbstractTreeItem *child); - void childDestroyed(int row); + + void beginRemoveChilds(int firstRow, int lastRow); + void endRemoveChilds(); + + void childRemoved(int row); + void childsRemoved(int firstRow, int lastRow); protected: void appendChild(AbstractTreeItem *parent, AbstractTreeItem *child);