History

Merge branch 'master' of https://github.com/worklist/hifi into sicksense

Andrzej Kapolka committed 12 years ago

Commit 7bc65132 parents fb46a63 cd4ef0810 files · +190 −37Browse files

Showing the changes to interface/src/Menu.cpp (1 of 10 files). Show all

Unified · Split

interface/src/Menu.cpp+10−4
@@ -72,7 +72,8 @@ Menu::Menu() : · 71 unmodified lines
7272 MenuOption::AboutApp,
7373 0,
7474 this,
75− SLOT(aboutApp()));
75+ SLOT(aboutApp()),
76+ QAction::AboutRole);
7677 #endif
7778
7879 (addActionToQMenuAndActionHash(fileMenu,
@@ -120,7 +121,9 @@ Menu::Menu() : · 41 unmodified lines
120121 MenuOption::Quit,
121122 Qt::CTRL | Qt::Key_Q,
122123 appInstance,
123− SLOT(quit()));
124+ SLOT(quit()),
125+ QAction::QuitRole);
126+
124127
125128 QMenu* editMenu = addMenu("Edit");
126129
@@ -128,7 +131,8 @@ Menu::Menu() : · 1 unmodified line
128131 MenuOption::Preferences,
129132 Qt::CTRL | Qt::Key_Comma,
130133 this,
131− SLOT(editPreferences()));
134+ SLOT(editPreferences()),
135+ QAction::PreferencesRole);
132136
133137 addDisabledActionAndSeparator(editMenu, "Voxels");
134138
@@ -681,7 +685,8 @@ QAction* Menu::addActionToQMenuAndActionHash(QMenu* destinationMenu, · 546 unmodified lines
681685 const QString actionName,
682686 const QKeySequence& shortcut,
683687 const QObject* receiver,
684− const char* member) {
688+ const char* member,
689+ QAction::MenuRole role) {
685690 QAction* action;
686691
687692 if (receiver && member) {
@@ -690,6 +695,7 @@ QAction* Menu::addActionToQMenuAndActionHash(QMenu* destinationMenu, · 2 unmodified lines
690695 action = destinationMenu->addAction(actionName);
691696 action->setShortcut(shortcut);
692697 }
698+ action->setMenuRole(role);
693699
694700 _actionHash.insert(actionName, action);
695701