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
d56da122
Commit
d56da122
authored
Sep 28, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: fix subtitle popup menu
parent
586296da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+7
-5
modules/gui/qt4/menus.hpp
modules/gui/qt4/menus.hpp
+1
-1
No files found.
modules/gui/qt4/menus.cpp
View file @
d56da122
...
@@ -626,13 +626,13 @@ QMenu *VLCMenuBar::AudioMenu( intf_thread_t *p_intf, QMenu * current )
...
@@ -626,13 +626,13 @@ QMenu *VLCMenuBar::AudioMenu( intf_thread_t *p_intf, QMenu * current )
}
}
/* Subtitles */
/* Subtitles */
QMenu
*
VLCMenuBar
::
SubtitleMenu
(
intf_thread_t
*
p_intf
,
QMenu
*
current
)
QMenu
*
VLCMenuBar
::
SubtitleMenu
(
intf_thread_t
*
p_intf
,
QMenu
*
current
,
bool
b_popup
)
{
{
input_thread_t
*
p_input
;
input_thread_t
*
p_input
;
QVector
<
vlc_object_t
*>
objects
;
QVector
<
vlc_object_t
*>
objects
;
QVector
<
const
char
*>
varnames
;
QVector
<
const
char
*>
varnames
;
if
(
current
->
isEmpty
()
)
if
(
current
->
isEmpty
()
||
b_popup
)
{
{
addDPStaticEntry
(
current
,
qtr
(
"Add &Subtitle File..."
),
""
,
addDPStaticEntry
(
current
,
qtr
(
"Add &Subtitle File..."
),
""
,
SLOT
(
loadSubtitlesFile
()
)
);
SLOT
(
loadSubtitlesFile
()
)
);
...
@@ -1046,9 +1046,11 @@ void VLCMenuBar::PopupMenu( intf_thread_t *p_intf, bool show )
...
@@ -1046,9 +1046,11 @@ void VLCMenuBar::PopupMenu( intf_thread_t *p_intf, bool show )
if
(
action
->
menu
()
->
isEmpty
()
)
if
(
action
->
menu
()
->
isEmpty
()
)
action
->
setEnabled
(
false
);
action
->
setEnabled
(
false
);
submenu
=
SubtitleMenu
(
p_intf
,
menu
);
/* Subtitles menu */
submenu
->
setTitle
(
qtr
(
"Subti&tle"
)
);
submenu
=
new
QMenu
(
menu
);
UpdateItem
(
p_intf
,
menu
,
"spu-es"
,
VLC_OBJECT
(
p_input
),
true
);
action
=
menu
->
addMenu
(
SubtitleMenu
(
p_intf
,
submenu
,
true
)
);
action
->
setText
(
qtr
(
"Subti&tle"
)
);
UpdateItem
(
p_intf
,
submenu
,
"spu-es"
,
VLC_OBJECT
(
p_input
),
true
);
/* Playback menu for chapters */
/* Playback menu for chapters */
submenu
=
new
QMenu
(
menu
);
submenu
=
new
QMenu
(
menu
);
...
...
modules/gui/qt4/menus.hpp
View file @
d56da122
...
@@ -122,7 +122,7 @@ private:
...
@@ -122,7 +122,7 @@ private:
static
QMenu
*
VideoMenu
(
intf_thread_t
*
p_intf
,
QWidget
*
parent
)
{
static
QMenu
*
VideoMenu
(
intf_thread_t
*
p_intf
,
QWidget
*
parent
)
{
return
VideoMenu
(
p_intf
,
new
QMenu
(
parent
)
);
return
VideoMenu
(
p_intf
,
new
QMenu
(
parent
)
);
}
}
static
QMenu
*
SubtitleMenu
(
intf_thread_t
*
,
QMenu
*
current
);
static
QMenu
*
SubtitleMenu
(
intf_thread_t
*
,
QMenu
*
current
,
bool
b_popup
=
false
);
static
QMenu
*
SubtitleMenu
(
intf_thread_t
*
p_intf
,
QWidget
*
parent
)
{
static
QMenu
*
SubtitleMenu
(
intf_thread_t
*
p_intf
,
QWidget
*
parent
)
{
return
SubtitleMenu
(
p_intf
,
new
QMenu
(
parent
)
);
return
SubtitleMenu
(
p_intf
,
new
QMenu
(
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