summaryrefslogtreecommitdiff
path: root/src/mainwindow.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-06-13 23:43:51 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-06-13 23:43:51 -0400
commita7757e8ba6f5d10feea9e58611bde4dcb911079b (patch)
tree94847db5dfc9dcf42846d9939a49018b0374ad34 /src/mainwindow.h
parentba0b2c2a29d32d290a16d88ff71475dbd61a8ffd (diff)
added option to hide the status bar
centralized menu visibility into a showMenuBar() function
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h
index e2c6ce8b..88389738 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -326,8 +326,8 @@ private:
bool m_WasVisible;
// this has to be remembered because by the time storeSettings() is called,
- // the window is closed and the menubar is hidden
- bool m_menuBarVisible;
+ // the window is closed and the all bars are hidden
+ bool m_menuBarVisible, m_statusBarVisible;
std::unique_ptr<StatusBar> m_statusBar;
@@ -651,6 +651,7 @@ private slots: // ui slots
void on_actionExit_triggered();
void on_actionMainMenuToggle_triggered();
void on_actionToolBarMainToggle_triggered();
+ void on_actionStatusBarToggle_triggered();
void on_actionToolBarSmallIcons_triggered();
void on_actionToolBarMediumIcons_triggered();
void on_actionToolBarLargeIcons_triggered();
@@ -694,6 +695,9 @@ private slots: // ui slots
void on_categoriesAndBtn_toggled(bool checked);
void on_categoriesOrBtn_toggled(bool checked);
void on_managedArchiveLabel_linkHovered(const QString &link);
+
+ void showMenuBar(bool b);
+ void showStatusBar(bool b);
};