Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
ffc8b7ce
Commit
ffc8b7ce
authored
Jun 17, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Menus: Comments and code cosmetics.
parent
3b4ca0c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
11 deletions
+27
-11
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+27
-11
No files found.
modules/gui/qt4/menus.cpp
View file @
ffc8b7ce
...
...
@@ -47,6 +47,22 @@
#include <QSignalMapper>
#include <QSystemTrayIcon>
/*
This file defines the main menus and the pop-up menu (right-click menu)
and the systray menu (in that order in the file)
There are 3 menus that have to be rebuilt everytime there are called:
Audio, Video, Navigation
3 functions are building those menus: AudioMenu, VideoMenu, NavigMenu
and 3 functions associated are collecting the objects :
InputAutoMenuBuilder, AudioAutoMenuBuilder, VideoAutoMenuBuilder.
A QSignalMapper decides when to rebuild those menus cf MenuFunc in the .hpp
Just before one of those menus are aboutToShow(), they are rebuild.
*/
enum
{
ITEM_NORMAL
,
...
...
@@ -355,7 +371,7 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf,
if
(
mi
)
{
/* Minimal View */
QAction
*
action
=
menu
->
addAction
(
qtr
(
"Minimal View..."
),
mi
,
QAction
*
action
=
menu
->
addAction
(
qtr
(
"Minimal View..."
),
mi
,
SLOT
(
toggleMinimalView
()
),
qtr
(
"Ctrl+H"
)
);
action
->
setCheckable
(
true
);
if
(
mi
->
getControlsVisibilityStatus
()
&
CONTROLS_VISIBLE
)
...
...
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