summaryrefslogtreecommitdiff
path: root/src/mainwindow.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-08-16 09:00:31 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-08-16 09:00:31 -0400
commit0374291a3451c464fb27e53077da42ad21c27cd6 (patch)
treeafea32cd268a15398bcee5c35e43331d125ea0a2 /src/mainwindow.h
parenta5cb39aaf44b1f84003fb2ec2d36f07bf28916e4 (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/mainwindow.h')
-rw-r--r--src/mainwindow.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h
index 8542dc8a..a905a163 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -40,7 +40,6 @@ class Executable;
class CategoryFactory;
class LockedDialogBase;
class OrganizerCore;
-class StatusBar;
class PluginListSortProxy;
namespace BSA { class Archive; }
@@ -118,8 +117,6 @@ public:
QWidget *parent = 0);
~MainWindow();
- void storeSettings(Settings& settings) override;
- void readSettings(const Settings& settings);
void processUpdates(Settings& settings);
virtual ILockedWaitingForProcess* lock() override;
@@ -331,12 +328,6 @@ private:
bool m_WasVisible;
- // this has to be remembered because by the time storeSettings() is called,
- // the window is closed and the all bars are hidden
- bool m_menuBarVisible, m_statusBarVisible;
-
- std::unique_ptr<StatusBar> m_statusBar;
-
// last separator on the toolbar, used to add spacer for right-alignment and
// as an insert point for executables
QAction* m_linksSeparator;
@@ -685,11 +676,9 @@ private slots: // ui slots
void on_categoriesOrBtn_toggled(bool checked);
void on_managedArchiveLabel_linkHovered(const QString &link);
+ void storeSettings(Settings& settings);
+ void readSettings(const Settings& settings);
void setupModList();
- void showMenuBar(bool b);
- void showStatusBar(bool b);
};
-
-
#endif // MAINWINDOW_H