mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Set menu roles for application menu on macOS
This commit is contained in:
parent
89382f6306
commit
8a78616351
@ -184,6 +184,7 @@ MainWindow::MainWindow()
|
||||
m_ui->actionChangeMasterKey->setIcon(filePath()->icon("actions", "database-change-key", false));
|
||||
m_ui->actionLockDatabases->setIcon(filePath()->icon("actions", "document-encrypt", false));
|
||||
m_ui->actionQuit->setIcon(filePath()->icon("actions", "application-exit"));
|
||||
m_ui->actionQuit->setMenuRole(QAction::QuitRole);
|
||||
|
||||
m_ui->actionEntryNew->setIcon(filePath()->icon("actions", "entry-new", false));
|
||||
m_ui->actionEntryClone->setIcon(filePath()->icon("actions", "entry-clone", false));
|
||||
@ -198,9 +199,11 @@ MainWindow::MainWindow()
|
||||
m_ui->actionGroupDelete->setIcon(filePath()->icon("actions", "group-delete", false));
|
||||
|
||||
m_ui->actionSettings->setIcon(filePath()->icon("actions", "configure"));
|
||||
m_ui->actionSettings->setMenuRole(QAction::PreferencesRole);
|
||||
m_ui->actionPasswordGenerator->setIcon(filePath()->icon("actions", "password-generator", false));
|
||||
|
||||
m_ui->actionAbout->setIcon(filePath()->icon("actions", "help-about"));
|
||||
m_ui->actionAbout->setMenuRole(QAction::AboutRole);
|
||||
|
||||
m_actionMultiplexer.connect(SIGNAL(currentModeChanged(DatabaseWidget::Mode)),
|
||||
this, SLOT(setMenuActionState(DatabaseWidget::Mode)));
|
||||
|
Loading…
Reference in New Issue
Block a user