[vlc-devel] [PATCH 4/4] qt4: remove unused parameter
Ludovic Fauvet
etix at videolan.org
Thu Jun 7 15:06:55 CEST 2012
---
modules/gui/qt4/menus.cpp | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index e1a843b..1d0b451 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -89,8 +89,7 @@ QAction *addDPStaticEntry( QMenu *menu,
const QString& text,
const char *icon,
const char *member,
- const char *shortcut = NULL,
- QAction::MenuRole = QAction::NoRole
+ const char *shortcut = NULL
)
{
QAction *action = NULL;
@@ -425,7 +424,7 @@ QMenu *VLCMenuBar::ToolsMenu( QMenu *menu )
":/menu/preferences", SLOT( toolbarDialog() ) );
addDPStaticEntry( menu, qtr( "&Preferences" ),
- ":/menu/preferences", SLOT( prefsDialog() ), "Ctrl+P", QAction::PreferencesRole );
+ ":/menu/preferences", SLOT( prefsDialog() ), "Ctrl+P" );
return menu;
}
@@ -755,7 +754,7 @@ QMenu *VLCMenuBar::HelpMenu( QWidget *parent )
#endif
menu->addSeparator();
addDPStaticEntry( menu, qtr( I_MENU_ABOUT ), ":/menu/info",
- SLOT( aboutDialog() ), "Shift+F1", QAction::AboutRole );
+ SLOT( aboutDialog() ), "Shift+F1" );
return menu;
}
@@ -912,7 +911,7 @@ void VLCMenuBar::PopupMenuStaticEntries( QMenu *menu )
#endif
addDPStaticEntry( menu, qtr( "Quit" ), ":/menu/quit",
- SLOT( quit() ), "Ctrl+Q", QAction::QuitRole );
+ SLOT( quit() ), "Ctrl+Q" );
}
/* Video Tracks and Subtitles tracks */
--
1.7.10.3
More information about the vlc-devel
mailing list