Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
387d1ce6
Commit
387d1ce6
authored
Dec 10, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: provide QAction roles for menu roles
parent
e15e0503
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+6
-4
No files found.
modules/gui/qt4/menus.cpp
View file @
387d1ce6
...
...
@@ -93,7 +93,9 @@ void addDPStaticEntry( QMenu *menu,
const
QString
&
text
,
const
char
*
icon
,
const
char
*
member
,
const
char
*
shortcut
=
NULL
)
const
char
*
shortcut
=
NULL
,
QAction
::
MenuRole
=
QAction
::
NoRole
)
{
QAction
*
action
=
NULL
;
#ifndef __APPLE__
/* We don't set icons in menus in MacOS X */
...
...
@@ -398,7 +400,7 @@ QMenu *QVLCMenu::ToolsMenu( QMenu *menu )
menu
->
addSeparator
();
addDPStaticEntry
(
menu
,
qtr
(
"&Preferences"
),
":/menu/preferences"
,
SLOT
(
prefsDialog
()
),
"Ctrl+P"
);
":/menu/preferences"
,
SLOT
(
prefsDialog
()
),
"Ctrl+P"
,
QAction
::
PreferencesRole
);
return
menu
;
}
...
...
@@ -762,7 +764,7 @@ QMenu *QVLCMenu::HelpMenu( QWidget *parent )
#endif
menu
->
addSeparator
();
addDPStaticEntry
(
menu
,
qtr
(
I_MENU_ABOUT
),
":/menu/info"
,
SLOT
(
aboutDialog
()
),
"Shift+F1"
);
SLOT
(
aboutDialog
()
),
"Shift+F1"
,
QAction
::
AboutRole
);
return
menu
;
}
...
...
@@ -901,7 +903,7 @@ void QVLCMenu::PopupMenuStaticEntries( QMenu *menu )
#endif
addDPStaticEntry
(
menu
,
qtr
(
"Quit"
),
":/menu/quit"
,
SLOT
(
quit
()
),
"Ctrl+Q"
);
SLOT
(
quit
()
),
"Ctrl+Q"
,
QAction
::
QuitRole
);
}
/* Video Tracks and Subtitles tracks */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment