summaryrefslogtreecommitdiff
path: root/src/settings.h
diff options
context:
space:
mode:
authorMikaƫl Capelle <capelle.mikael@gmail.com>2021-01-10 10:25:37 +0100
committerGitHub <noreply@github.com>2021-01-10 10:25:37 +0100
commit80e44a9e3ade61695b4807a3a900d2866138ecac (patch)
tree1ef9904664d8d34dba6692bbf5325aea8c199d08 /src/settings.h
parenteaec140f7c823012c09536175d8917dddcacdb7c (diff)
parent4a0ce804ea486744e5f6140a0ce4538d99e21ce3 (diff)
Merge pull request #1338 from Holt59/collapsible-separators
Collapsible separators (and refactoring).
Diffstat (limited to 'src/settings.h')
-rw-r--r--src/settings.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/settings.h b/src/settings.h
index 4d1258bf..043b22a4 100644
--- a/src/settings.h
+++ b/src/settings.h
@@ -202,6 +202,16 @@ 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
+ //
+ void saveTreeExpandState(const QTreeView* tv, int role = Qt::DisplayRole);
+ void restoreTreeExpandState(QTreeView* tv, int role = Qt::DisplayRole) const;
+
// selected index for a combobox
//
std::optional<int> index(const QComboBox* cb) const;
@@ -611,6 +621,16 @@ public:
std::optional<QString> styleName() const;
void setStyleName(const QString& name);
+ // whether to use collapsible separators when possible
+ //
+ bool collapsibleSeparators() const;
+ void setCollapsibleSeparators(bool b);
+
+ // whether to display mod conflicts on separators when collapsed
+ //
+ bool collapsibleSeparatorsConflicts() const;
+ void setCollapsibleSeparatorsConflicts(bool b);
+
// whether to show compact downloads
//
bool compactDownloads() const;