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
Show 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,7 +111,7 @@ void addDPStaticEntry( QMenu *menu,
...
@@ -111,7 +111,7 @@ void addDPStaticEntry( QMenu *menu,
/***
/***
* Same for MIM
* Same for MIM
***/
***/
void
addMIMStaticEntry
(
intf_thread_t
*
p_intf
,
QAction
*
addMIMStaticEntry
(
intf_thread_t
*
p_intf
,
QMenu
*
menu
,
QMenu
*
menu
,
const
QString
text
,
const
QString
text
,
const
char
*
icon
,
const
char
*
icon
,
...
@@ -129,6 +129,7 @@ void addMIMStaticEntry( intf_thread_t *p_intf,
...
@@ -129,6 +129,7 @@ void addMIMStaticEntry( intf_thread_t *p_intf,
action
=
menu
->
addAction
(
text
,
THEMIM
,
member
);
action
=
menu
->
addAction
(
text
,
THEMIM
,
member
);
}
}
action
->
setData
(
bStatic
?
STATIC_ENTRY
:
ENTRY_ALWAYS_ENABLED
);
action
->
setData
(
bStatic
?
STATIC_ENTRY
:
ENTRY_ALWAYS_ENABLED
);
return
action
;
}
}
/**
/**
...
@@ -608,7 +609,8 @@ QMenu *QVLCMenu::NavigMenu( intf_thread_t *p_intf, QMenu *menu )
...
@@ -608,7 +609,8 @@ QMenu *QVLCMenu::NavigMenu( intf_thread_t *p_intf, QMenu *menu )
PopupMenuPlaylistControlEntries
(
menu
,
p_intf
);
PopupMenuPlaylistControlEntries
(
menu
,
p_intf
);
PopupMenuControlEntries
(
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
)
QMenu
*
QVLCMenu
::
RebuildNavigMenu
(
intf_thread_t
*
p_intf
,
QMenu
*
menu
)
...
@@ -781,15 +783,19 @@ void QVLCMenu::PopupMenuControlEntries( QMenu *menu, intf_thread_t *p_intf )
...
@@ -781,15 +783,19 @@ void QVLCMenu::PopupMenuControlEntries( QMenu *menu, intf_thread_t *p_intf )
void
QVLCMenu
::
PopupMenuPlaylistControlEntries
(
QMenu
*
menu
,
void
QVLCMenu
::
PopupMenuPlaylistControlEntries
(
QMenu
*
menu
,
intf_thread_t
*
p_intf
)
intf_thread_t
*
p_intf
)
{
{
addMIMStaticEntry
(
p_intf
,
menu
,
qtr
(
"&Stop"
),
":/stop"
,
SLOT
(
stop
()
),
bool
bEnable
=
THEMIM
->
getInput
()
!=
NULL
;
true
);
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 */
/* Next / Previous */
bool
bEnable
=
THEMIM
->
getInput
()
!=
NULL
;
addMIMStaticEntry
(
p_intf
,
menu
,
qtr
(
"Pre&vious"
),
addMIMStaticEntry
(
p_intf
,
menu
,
qtr
(
"Pre&vious"
),
":/previous"
,
SLOT
(
prev
()
)
,
true
);
":/previous"
,
SLOT
(
prev
()
)
);
addMIMStaticEntry
(
p_intf
,
menu
,
qtr
(
"Ne&xt"
),
addMIMStaticEntry
(
p_intf
,
menu
,
qtr
(
"Ne&xt"
),
":/next"
,
SLOT
(
next
()
)
,
true
);
":/next"
,
SLOT
(
next
()
)
);
menu
->
addSeparator
();
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