Added QAction::menuRole to the preferences menu item
This commit is contained in:
parent
87230c67fc
commit
8576b4e1d7
1 changed files with 1 additions and 0 deletions
|
@ -86,6 +86,7 @@ void MainWindow::setupMenu() {
|
|||
// File
|
||||
QMenu *fileMenu = menuBar()->addMenu(tr("&File"));
|
||||
QAction *config = fileMenu->addAction(tr("&Configure"), this, SLOT(slotConfigure()));
|
||||
config->setMenuRole(QAction::PreferencesRole);
|
||||
fileMenu->addSeparator();
|
||||
QAction *quit = fileMenu->addAction(tr("&Quit"), qApp, SLOT(quit()));
|
||||
quit->setMenuRole( QAction::QuitRole );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue