diff options
Diffstat (limited to 'smtreemodel.h')
-rw-r--r-- | smtreemodel.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/smtreemodel.h b/smtreemodel.h index 515f7b3..7037e4c 100644 --- a/smtreemodel.h +++ b/smtreemodel.h @@ -37,11 +37,12 @@ class SmTreeModel : public QAbstractItemModel { virtual QVariant data(const QModelIndex &index, int role) const; virtual bool setData(const QModelIndex &index, const QVariant &value, int role); virtual QModelIndex find(const QVariant &value, int column = 0, const QModelIndex &parent = QModelIndex()) const; - virtual QModelIndex findRecursive(const QVariant &value, int column = 0, const QModelIndex &parent = QModelIndex()) const; + virtual QModelIndex findRecursive(const QVariant &value, int column, const QModelIndex &start) const; // root + parent item bool setRoot(SmTreeItem *rootItem); SmTreeItem *root() const { return mRootItem; } + QModelIndex rootIndex() const; SmTreeItem *parentItem(const QModelIndex &child) const; void reparent(const QModelIndex &idx, const QModelIndex &newParent, bool sorted = false); |