summaryrefslogtreecommitdiff
path: root/src/settings.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-02 17:14:09 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-02 17:18:31 +0100
commit071974c243d97a19e5a73f368ce25f8decd00183 (patch)
tree9e504608ddd05a2aeae5c654ad5817bc7cbc4528 /src/settings.h
parent22810ccbba530a9dfa679437c703fc860a891060 (diff)
Save/restore filter list state between run.
Diffstat (limited to 'src/settings.h')
-rw-r--r--src/settings.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/settings.h b/src/settings.h
index 5506bbf8..9c3765c2 100644
--- a/src/settings.h
+++ b/src/settings.h
@@ -202,11 +202,15 @@ public:
//
WidgetSettings(QSettings& s, bool globalInstance);
+ // tree item check - this saves the list of expanded items based on the given role
+ //
+ void saveTreeCheckState(const QTreeView* tv, int role = Qt::CheckStateRole);
+ void restoreTreeCheckState(QTreeView* tv, int role = Qt::CheckStateRole) const;
+
// tree state - this saves the list of expanded items based on the given role
//
- std::vector<QModelIndex> allIndex(const QAbstractItemModel* model, int column = 0, const QModelIndex& parent = QModelIndex()) const;
- void saveTreeState(const QTreeView* tv, int role = Qt::DisplayRole);
- void restoreTreeState(QTreeView* tv, int role = Qt::DisplayRole) const;
+ void saveTreeExpandState(const QTreeView* tv, int role = Qt::DisplayRole);
+ void restoreTreeExpandState(QTreeView* tv, int role = Qt::DisplayRole) const;
// selected index for a combobox
//