summaryrefslogtreecommitdiff
path: root/src/mainwindow.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-06-04 18:25:31 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-06-04 18:25:31 -0400
commit369408eed067c1ca76759ef22ea5dfc4facdf082 (patch)
tree5c81f9d71fe3395f03e5c8cf928bd8677027ec03 /src/mainwindow.h
parent2fb33d891f15a598b16d34960a51bff0be30bcdc (diff)
reverted changes to the toolbar:
- swapped back "add profile" and "install mod" icons - removed links toolbar, icons are added to the main one - locked the toolbar because there's only one now - right align everything after the last separator and executable shortcuts
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 81b6a656..679065bd 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -207,6 +207,7 @@ private:
void cleanup();
+ void setupToolbar();
void setupActionMenu(QAction* a);
void createHelpMenu();
void createEndorseMenu();
@@ -328,6 +329,10 @@ private:
// the window is closed and the menubar is hidden
bool m_menuBarVisible;
+ // last separator on the toolbar, used to add spacer for right-alignment and
+ // as an insert point for executables
+ QAction* m_linksSeparator;
+
MOBase::TutorialControl m_Tutorial;
int m_OldProfileIndex;
@@ -602,7 +607,7 @@ private slots:
*/
void allowListResize();
- void linksToolBar_customContextMenuRequested(const QPoint &point);
+ void toolBar_customContextMenuRequested(const QPoint &point);
void removeFromToolbar();
void overwriteClosed(int);
@@ -640,7 +645,6 @@ private slots: // ui slots
void on_actionExit_triggered();
void on_actionMainMenuToggle_triggered();
void on_actionToolBarMainToggle_triggered();
- void on_actionToolBarLinksToggle_triggered();
void on_actionToolBarSmallIcons_triggered();
void on_actionToolBarMediumIcons_triggered();
void on_actionToolBarLargeIcons_triggered();