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
492b2bc1
Commit
492b2bc1
authored
Apr 23, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: fix subtitle menu
parent
e472a4a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+5
-3
modules/gui/qt4/menus.hpp
modules/gui/qt4/menus.hpp
+1
-1
No files found.
modules/gui/qt4/menus.cpp
View file @
492b2bc1
...
...
@@ -597,7 +597,7 @@ QMenu *QVLCMenu::AudioMenu( intf_thread_t *p_intf, QMenu * current )
}
/* Subtitles */
QMenu
*
QVLCMenu
::
SubMenu
(
intf_thread_t
*
p_intf
,
QMenu
*
current
)
QMenu
*
QVLCMenu
::
Sub
title
Menu
(
intf_thread_t
*
p_intf
,
QMenu
*
current
)
{
QAction
*
action
;
QMenu
*
submenu
=
new
QMenu
(
qtr
(
"&Subtitles Track"
),
current
);
...
...
@@ -624,7 +624,7 @@ QMenu *QVLCMenu::VideoMenu( intf_thread_t *p_intf, QMenu *current, bool b_subtit
{
addActionWithSubmenu
(
current
,
"video-es"
,
qtr
(
"Video &Track"
)
);
if
(
b_subtitle
)
SubMenu
(
p_intf
,
current
);
Sub
title
Menu
(
p_intf
,
current
);
current
->
addSeparator
();
...
...
@@ -982,7 +982,9 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
if
(
action
->
menu
()
->
isEmpty
()
)
action
->
setEnabled
(
false
);
SubMenu
(
p_intf
,
menu
)
->
setTitle
(
qtr
(
"Subti&tle"
)
);
submenu
=
SubtitleMenu
(
p_intf
,
menu
);
submenu
->
setTitle
(
qtr
(
"Subti&tle"
)
);
UpdateItem
(
p_intf
,
menu
,
"spu-es"
,
VLC_OBJECT
(
p_input
),
true
);
/* Playback menu for chapters */
submenu
=
new
QMenu
(
menu
);
...
...
modules/gui/qt4/menus.hpp
View file @
492b2bc1
...
...
@@ -113,7 +113,7 @@ private:
static
QMenu
*
VideoMenu
(
intf_thread_t
*
p_intf
,
QWidget
*
parent
)
{
return
VideoMenu
(
p_intf
,
new
QMenu
(
parent
)
);
}
static
QMenu
*
SubMenu
(
intf_thread_t
*
p_intf
,
QMenu
*
current
);
static
QMenu
*
Sub
title
Menu
(
intf_thread_t
*
p_intf
,
QMenu
*
current
);
static
QMenu
*
AudioMenu
(
intf_thread_t
*
,
QMenu
*
);
static
QMenu
*
AudioMenu
(
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