Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
2d0e1cfb
Commit
2d0e1cfb
authored
Apr 05, 2009
by
Jean-Philippe Andre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: really fix #2619 and the Playback menus
Never disable Stop Disable stop when no input Populate Bookmarks
parent
dc185ad0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 deletions
+18
-12
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+18
-12
No files found.
modules/gui/qt4/menus.cpp
View file @
2d0e1cfb
...
...
@@ -111,12 +111,12 @@ void addDPStaticEntry( QMenu *menu,
/***
* Same for MIM
***/
void
addMIMStaticEntry
(
intf_thread_t
*
p_intf
,
QMenu
*
menu
,
const
QString
text
,
const
char
*
icon
,
const
char
*
member
,
bool
bStatic
=
false
)
QAction
*
addMIMStaticEntry
(
intf_thread_t
*
p_intf
,
QMenu
*
menu
,
const
QString
text
,
const
char
*
icon
,
const
char
*
member
,
bool
bStatic
=
false
)
{
QAction
*
action
;
if
(
strlen
(
icon
)
>
0
)
...
...
@@ -129,6 +129,7 @@ void addMIMStaticEntry( intf_thread_t *p_intf,
action
=
menu
->
addAction
(
text
,
THEMIM
,
member
);
}
action
->
setData
(
bStatic
?
STATIC_ENTRY
:
ENTRY_ALWAYS_ENABLED
);
return
action
;
}
/**
...
...
@@ -608,7 +609,8 @@ QMenu *QVLCMenu::NavigMenu( intf_thread_t *p_intf, QMenu *menu )
PopupMenuPlaylistControlEntries
(
menu
,
p_intf
);
PopupMenuControlEntries
(
menu
,
p_intf
);
return
menu
;
EnableStaticEntries
(
menu
,
(
THEMIM
->
getInput
()
!=
NULL
)
);
return
RebuildNavigMenu
(
p_intf
,
menu
);
}
QMenu
*
QVLCMenu
::
RebuildNavigMenu
(
intf_thread_t
*
p_intf
,
QMenu
*
menu
)
...
...
@@ -781,15 +783,19 @@ void QVLCMenu::PopupMenuControlEntries( QMenu *menu, intf_thread_t *p_intf )
void
QVLCMenu
::
PopupMenuPlaylistControlEntries
(
QMenu
*
menu
,
intf_thread_t
*
p_intf
)
{
addMIMStaticEntry
(
p_intf
,
menu
,
qtr
(
"&Stop"
),
":/stop"
,
SLOT
(
stop
()
),
true
);
bool
bEnable
=
THEMIM
->
getInput
()
!=
NULL
;
QAction
*
action
=
addMIMStaticEntry
(
p_intf
,
menu
,
qtr
(
"&Stop"
),
":/stop"
,
SLOT
(
stop
()
),
true
);
/* Disable Stop in the right-click popup menu */
if
(
!
bEnable
)
action
->
setEnabled
(
false
);
/* Next / Previous */
bool
bEnable
=
THEMIM
->
getInput
()
!=
NULL
;
addMIMStaticEntry
(
p_intf
,
menu
,
qtr
(
"Pre&vious"
),
":/previous"
,
SLOT
(
prev
()
)
,
true
);
":/previous"
,
SLOT
(
prev
()
)
);
addMIMStaticEntry
(
p_intf
,
menu
,
qtr
(
"Ne&xt"
),
":/next"
,
SLOT
(
next
()
)
,
true
);
":/next"
,
SLOT
(
next
()
)
);
menu
->
addSeparator
();
}
...
...
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