[vlc-commits] Qt: use menuRole on OSX

Jean-Baptiste Kempf git at videolan.org
Thu Jun 7 16:42:30 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jun  7 16:42:16 2012 +0200| [ac5e5b8b31683c8850ea172035debdc55ed0511a] | committer: Jean-Baptiste Kempf

Qt: use menuRole on OSX

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ac5e5b8b31683c8850ea172035debdc55ed0511a
---

 modules/gui/qt4/menus.cpp |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index e1a843b..4903f0f 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -90,7 +90,7 @@ QAction *addDPStaticEntry( QMenu *menu,
                        const char *icon,
                        const char *member,
                        const char *shortcut = NULL,
-                       QAction::MenuRole = QAction::NoRole
+                       QAction::MenuRole role = QAction::NoRole
                        )
 {
     QAction *action = NULL;
@@ -111,6 +111,9 @@ QAction *addDPStaticEntry( QMenu *menu,
         else
             action = menu->addAction( text, THEDP, member );
     }
+#ifdef __APPLE__
+    action->setMenuRole( role )
+#endif
     action->setData( VLCMenuBar::ACTION_STATIC );
     return action;
 }



More information about the vlc-commits mailing list