X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Ftreemodel.h;h=8caffdd514b7449960fa5804e2758a66c667a061;hp=3a1c144e08462b1601f74c658564c5083a1d3424;hb=da28b86876edea39e97ffdd4cc5602072c001f93;hpb=56607f81246f04db3a0e71c9a8757d7f75d6cfcf diff --git a/src/client/treemodel.h b/src/client/treemodel.h index 3a1c144e..8caffdd5 100644 --- a/src/client/treemodel.h +++ b/src/client/treemodel.h @@ -52,7 +52,7 @@ public: AbstractTreeItem *child(int row) const; AbstractTreeItem *childById(const quint64 &id) const; - int childCount() const; + int childCount(int column = 0) const; virtual int columnCount() const = 0; @@ -133,6 +133,11 @@ class TreeModel : public QAbstractItemModel { Q_OBJECT public: + enum myRoles { + SortRole = Qt::UserRole, + UserRole + }; + TreeModel(const QList &, QObject *parent = 0); virtual ~TreeModel(); @@ -183,6 +188,7 @@ private slots: void debug_rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end); void debug_rowsInserted(const QModelIndex &parent, int start, int end); void debug_rowsRemoved(const QModelIndex &parent, int start, int end); + void debug_dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight); }; #endif