diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-08-16 09:00:31 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-08-16 09:00:31 -0400 |
| commit | 0374291a3451c464fb27e53077da42ad21c27cd6 (patch) | |
| tree | afea32cd268a15398bcee5c35e43331d125ea0a2 /src/settings.h | |
| parent | a5cb39aaf44b1f84003fb2ec2d36f07bf28916e4 (diff) | |
StatusBar now inherits from QStatusBar to handle hide/show events
merged settings into saveVisibility() and restoreVisibility()
call MainWindow::storeSettings() earlier so widget visibility is still valid
Diffstat (limited to 'src/settings.h')
| -rw-r--r-- | src/settings.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/settings.h b/src/settings.h index 9ae58803..072b4066 100644 --- a/src/settings.h +++ b/src/settings.h @@ -54,6 +54,7 @@ public: void requestReset(); void resetIfNeeded(); + void saveGeometry(const QWidget* w); bool restoreGeometry(QWidget* w) const; @@ -69,17 +70,13 @@ public: void saveState(const QSplitter* splitter); bool restoreState(QSplitter* splitter) const; - std::optional<bool> getMenubarVisible() const; - void setMenubarVisible(bool b); - bool restoreToolbars(QMainWindow* w) const; - void saveToolbars(const QMainWindow* w); + void saveVisibility(const QWidget* w); + bool restoreVisibility(QWidget* w, std::optional<bool> defaultValue={}) const; - std::optional<bool> getStatusbarVisible() const; - void setStatusbarVisible(bool b); - std::optional<bool> getFiltersVisible() const; - void setFiltersVisible(bool b); + void saveToolbars(const QMainWindow* w); + void restoreToolbars(QMainWindow* w) const; QStringList getModInfoTabOrder() const; void setModInfoTabOrder(const QString& names); |
