diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-08-24 13:04:10 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-08-24 13:04:10 -0400 |
| commit | 0f712305c840bc509fa8f00eebf2a2a4bbf28bfd (patch) | |
| tree | 81087d9f70c83ea43d0f1a8e706bf307e7631019 /src/settings.h | |
| parent | 2ffad7edf2946e66585a67c4ab58c0522cd8e412 (diff) | |
added settings for QTabWidget, checkable QAbstractButton and ExpanderWidget
removed directInterface() from mod info conflicts
Diffstat (limited to 'src/settings.h')
| -rw-r--r-- | src/settings.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/settings.h b/src/settings.h index d46c358c..b25af15f 100644 --- a/src/settings.h +++ b/src/settings.h @@ -34,6 +34,7 @@ class QSplitter; class PluginContainer; struct ServerInfo; class Settings; +class ExpanderWidget; class GeometrySaver { @@ -71,6 +72,9 @@ public: void saveState(const QSplitter* splitter); bool restoreState(QSplitter* splitter) const; + void saveState(const ExpanderWidget* expander); + bool restoreState(ExpanderWidget* expander) const; + void saveVisibility(const QWidget* w); bool restoreVisibility(QWidget* w, std::optional<bool> def={}) const; @@ -249,10 +253,18 @@ public: void resetQuestionButtons(); - std::optional<int> getIndex(QComboBox* cb) const; + std::optional<int> getIndex(const QComboBox* cb) const; void saveIndex(const QComboBox* cb); void restoreIndex(QComboBox* cb, std::optional<int> def={}) const; + std::optional<int> getIndex(const QTabWidget* w) const; + void saveIndex(const QTabWidget* w); + void restoreIndex(QTabWidget* w, std::optional<int> def={}) const; + + std::optional<bool> getChecked(const QAbstractButton* w) const; + void saveChecked(const QAbstractButton* w); + void restoreChecked(QAbstractButton* w, std::optional<bool> def={}) const; + GeometrySettings& geometry(); const GeometrySettings& geometry() const; |
