Browse Source

Merge pull request #7122 from vit9696/uifix

Fix main menu item location on macOS
adaptive-webui-19844
sledgehammer999 7 years ago committed by GitHub
parent
commit
1aa3c69916
  1. 7
      src/gui/mainwindow.cpp

7
src/gui/mainwindow.cpp

@ -326,6 +326,13 @@ MainWindow::MainWindow(QWidget *parent) @@ -326,6 +326,13 @@ MainWindow::MainWindow(QWidget *parent)
m_ui->actionCheckForUpdates->setVisible(false);
#endif
// Certain menu items should reside at specific places on macOS.
// Qt partially does it on its own, but updates and different languages require tuning.
m_ui->actionExit->setMenuRole(QAction::QuitRole);
m_ui->actionAbout->setMenuRole(QAction::AboutRole);
m_ui->actionCheckForUpdates->setMenuRole(QAction::ApplicationSpecificRole);
m_ui->actionOptions->setMenuRole(QAction::PreferencesRole);
connect(m_ui->actionManageCookies, &QAction::triggered, this, &MainWindow::manageCookies);
m_pwr = new PowerManagement(this);

Loading…
Cancel
Save