summaryrefslogtreecommitdiffstats
path: root/smtreemodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'smtreemodel.h')
-rw-r--r--smtreemodel.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/smtreemodel.h b/smtreemodel.h
index e097d60..515f7b3 100644
--- a/smtreemodel.h
+++ b/smtreemodel.h
@@ -43,12 +43,12 @@ class SmTreeModel : public QAbstractItemModel {
bool setRoot(SmTreeItem *rootItem);
SmTreeItem *root() const { return mRootItem; }
SmTreeItem *parentItem(const QModelIndex &child) const;
- void reparent(const QModelIndex &idx, const QModelIndex &newParent);
+ void reparent(const QModelIndex &idx, const QModelIndex &newParent, bool sorted = false);
// row manipulation
- virtual bool insertRows(int row, int count, const QModelIndex &parent);
+ virtual bool insertRows(int row, int count, const QModelIndex &parent);
virtual bool removeRows(int row, int count, const QModelIndex &parent);
- bool addRow(const QList<QVariant> &data, const QModelIndex &parent);
+ bool addRow(const QList<QVariant> &data, const QModelIndex &parent, bool sorted = false);
//misc
void setDecorationIcon(const QIcon &icon) { mDecorationIcon = icon; }