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
921a659c
Commit
921a659c
authored
Jan 14, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: rebuild correctly the playback menu
And also, close #5522
parent
06ca7e5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
6 deletions
+18
-6
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+17
-5
modules/gui/qt4/menus.hpp
modules/gui/qt4/menus.hpp
+1
-1
No files found.
modules/gui/qt4/menus.cpp
View file @
921a659c
...
...
@@ -700,15 +700,16 @@ QMenu *VLCMenuBar::NavigMenu( intf_thread_t *p_intf, QMenu *menu )
action
->
setData
(
"bookmark"
);
menu
->
addSeparator
();
PopupMenuPlaylistControlEntries
(
menu
,
p_intf
);
PopupMenuControlEntries
(
menu
,
p_intf
);
EnableStaticEntries
(
menu
,
(
THEMIM
->
getInput
()
!=
NULL
)
);
return
RebuildNavigMenu
(
p_intf
,
menu
);
return
RebuildNavigMenu
(
p_intf
,
menu
,
true
);
}
QMenu
*
VLCMenuBar
::
RebuildNavigMenu
(
intf_thread_t
*
p_intf
,
QMenu
*
menu
)
QMenu
*
VLCMenuBar
::
RebuildNavigMenu
(
intf_thread_t
*
p_intf
,
QMenu
*
menu
,
bool
b_keep
)
{
/* */
input_thread_t
*
p_object
;
QVector
<
vlc_object_t
*>
objects
;
...
...
@@ -719,14 +720,25 @@ QMenu *VLCMenuBar::RebuildNavigMenu( intf_thread_t *p_intf, QMenu *menu )
InputAutoMenuBuilder
(
p_object
,
objects
,
varnames
);
menu
->
addSeparator
();
/* Title and so on */
PUSH_VAR
(
"prev-title"
);
PUSH_VAR
(
"next-title"
);
PUSH_VAR
(
"prev-chapter"
);
PUSH_VAR
(
"next-chapter"
);
/* Remove playback actions to recreate them */
if
(
!
b_keep
)
{
QList
<
QAction
*
>
actions
=
menu
->
actions
();
if
(
actions
.
count
()
>
4
)
for
(
int
i
=
actions
.
count
()
-
1
;
i
>=
actions
.
count
()
-
1
-
4
;
--
i
)
delete
actions
[
i
];
}
PopupPlayEntries
(
menu
,
p_intf
,
p_object
);
PopupMenuPlaylistControlEntries
(
menu
,
p_intf
);
/* */
EnableStaticEntries
(
menu
,
(
p_object
!=
NULL
)
);
return
Populate
(
p_intf
,
menu
,
varnames
,
objects
);
}
...
...
modules/gui/qt4/menus.hpp
View file @
921a659c
...
...
@@ -114,7 +114,7 @@ private:
static
QMenu
*
NavigMenu
(
intf_thread_t
*
p_intf
,
QWidget
*
parent
)
{
return
NavigMenu
(
p_intf
,
new
QMenu
(
parent
)
);
}
static
QMenu
*
RebuildNavigMenu
(
intf_thread_t
*
,
QMenu
*
);
static
QMenu
*
RebuildNavigMenu
(
intf_thread_t
*
,
QMenu
*
,
bool
b_keep
=
false
);
static
QMenu
*
VideoMenu
(
intf_thread_t
*
,
QMenu
*
,
bool
b_subtitle
=
true
);
static
QMenu
*
VideoMenu
(
intf_thread_t
*
p_intf
,
QWidget
*
parent
)
{
...
...
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