summaryrefslogtreecommitdiffstats
path: root/smtreemodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'smtreemodel.h')
-rw-r--r--smtreemodel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/smtreemodel.h b/smtreemodel.h
index ae3b5ce..6d89fb2 100644
--- a/smtreemodel.h
+++ b/smtreemodel.h
@@ -33,11 +33,13 @@ class SmTreeModel : public QAbstractItemModel {
bool setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role);
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;
// root + parent item
bool setRoot(SmTreeItem *rootItem);
SmTreeItem *root() const { return mRootItem; }
SmTreeItem *parentItem(const QModelIndex &child) const;
+ void reparent(const QModelIndex &idx, const QModelIndex &newParent);
// row manipulation
bool insertRows(int row, int count, const QModelIndex &parent);