NOISSUE Reorder and reword main toolbar actions to save space

```
Folder, Help, Check for Updates, Settings
  -> Folders, Settings, Help, Update
```
This commit is contained in:
Petr Mrázek 2017-12-06 02:01:42 +01:00
parent 6d034bda82
commit 57accb1cbb

View File

@ -293,6 +293,15 @@ public:
foldersButtonAction->setDefaultWidget(foldersMenuButton); foldersButtonAction->setDefaultWidget(foldersMenuButton);
mainToolBar->addAction(foldersButtonAction); mainToolBar->addAction(foldersButtonAction);
actionSettings = TranslatedAction(MainWindow);
actionSettings->setObjectName(QStringLiteral("actionSettings"));
actionSettings->setIcon(MMC->getThemedIcon("settings"));
actionSettings->setMenuRole(QAction::PreferencesRole);
actionSettings.setTextId(QT_TRANSLATE_NOOP("MainWindow", "Settings"));
actionSettings.setTooltipId(QT_TRANSLATE_NOOP("MainWindow", "Change settings."));
all_actions.append(&actionSettings);
mainToolBar->addAction(actionSettings);
helpMenu = new QMenu(MainWindow); helpMenu = new QMenu(MainWindow);
helpMenu->setToolTipsVisible(true); helpMenu->setToolTipsVisible(true);
@ -341,36 +350,17 @@ public:
helpButtonAction->setDefaultWidget(helpMenuButton); helpButtonAction->setDefaultWidget(helpMenuButton);
mainToolBar->addAction(helpButtonAction); mainToolBar->addAction(helpButtonAction);
/*
actionRefresh = TranslatedAction(MainWindow);
actionRefresh->setObjectName(QStringLiteral("actionRefresh"));
actionRefresh->setIcon(MMC->getThemedIcon("refresh"));
actionRefresh.setTextId(QT_TRANSLATE_NOOP("MainWindow", "Refresh"));
actionRefresh.setTooltipId(QT_TRANSLATE_NOOP("MainWindow", "Reload the instance list."));
all_actions.append(&actionRefresh);
mainToolBar->addAction(actionRefresh);
*/
if(BuildConfig.UPDATER_ENABLED) if(BuildConfig.UPDATER_ENABLED)
{ {
actionCheckUpdate = TranslatedAction(MainWindow); actionCheckUpdate = TranslatedAction(MainWindow);
actionCheckUpdate->setObjectName(QStringLiteral("actionCheckUpdate")); actionCheckUpdate->setObjectName(QStringLiteral("actionCheckUpdate"));
actionCheckUpdate->setIcon(MMC->getThemedIcon("checkupdate")); actionCheckUpdate->setIcon(MMC->getThemedIcon("checkupdate"));
actionCheckUpdate.setTextId(QT_TRANSLATE_NOOP("MainWindow", "Check for Updates")); actionCheckUpdate.setTextId(QT_TRANSLATE_NOOP("MainWindow", "Update"));
actionCheckUpdate.setTooltipId(QT_TRANSLATE_NOOP("MainWindow", "Check for new updates for MultiMC.")); actionCheckUpdate.setTooltipId(QT_TRANSLATE_NOOP("MainWindow", "Check for new updates for MultiMC."));
all_actions.append(&actionCheckUpdate); all_actions.append(&actionCheckUpdate);
mainToolBar->addAction(actionCheckUpdate); mainToolBar->addAction(actionCheckUpdate);
} }
actionSettings = TranslatedAction(MainWindow);
actionSettings->setObjectName(QStringLiteral("actionSettings"));
actionSettings->setIcon(MMC->getThemedIcon("settings"));
actionSettings->setMenuRole(QAction::PreferencesRole);
actionSettings.setTextId(QT_TRANSLATE_NOOP("MainWindow", "Settings"));
actionSettings.setTooltipId(QT_TRANSLATE_NOOP("MainWindow", "Change settings."));
all_actions.append(&actionSettings);
mainToolBar->addAction(actionSettings);
mainToolBar->addSeparator(); mainToolBar->addSeparator();
actionPatreon = TranslatedAction(MainWindow); actionPatreon = TranslatedAction(MainWindow);