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
7bfa2a8a
Commit
7bfa2a8a
authored
Jun 22, 2011
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: enable tearOff on Navigation and Bookmarks menus.
parent
0e325b3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+9
-4
No files found.
modules/gui/qt4/menus.cpp
View file @
7bfa2a8a
...
...
@@ -281,11 +281,13 @@ static inline void addAction( QMenu *_menu, QVariant val, QString title ) {
}
// Add an action with a submenu
static
inline
void
addActionWithSubmenu
(
QMenu
*
_menu
,
QVariant
val
,
QString
title
)
{
static
inline
QMenu
*
addActionWithSubmenu
(
QMenu
*
_menu
,
QVariant
val
,
QString
title
)
{
QAction
*
_action
=
new
QAction
(
title
,
_menu
);
QMenu
*
_submenu
=
new
QMenu
(
_menu
);
_action
->
setData
(
val
);
_action
->
setMenu
(
new
QMenu
(
_menu
)
);
_action
->
setMenu
(
_submenu
);
_menu
->
addAction
(
_action
);
return
_submenu
;
}
// Add an action that is a checkbox
...
...
@@ -671,14 +673,17 @@ QMenu *QVLCMenu::VideoMenu( intf_thread_t *p_intf, QMenu *current, bool b_subtit
QMenu
*
QVLCMenu
::
NavigMenu
(
intf_thread_t
*
p_intf
,
QMenu
*
menu
)
{
QAction
*
action
;
QMenu
*
submenu
;
addActionWithSubmenu
(
menu
,
"title"
,
qtr
(
"T&itle"
)
);
addActionWithSubmenu
(
menu
,
"chapter"
,
qtr
(
"&Chapter"
)
);
addActionWithSubmenu
(
menu
,
"navigation"
,
qtr
(
"&Navigation"
)
);
submenu
=
addActionWithSubmenu
(
menu
,
"navigation"
,
qtr
(
"&Navigation"
)
);
submenu
->
setTearOffEnabled
(
true
);
addActionWithSubmenu
(
menu
,
"program"
,
qtr
(
"&Program"
)
);
/* FixMe: sync I_MENU_BOOKMARK string */
QMenu
*
submenu
=
new
QMenu
(
qtr
(
"Custom &Bookmarks"
),
menu
);
submenu
=
new
QMenu
(
qtr
(
"Custom &Bookmarks"
),
menu
);
submenu
->
setTearOffEnabled
(
true
);
addDPStaticEntry
(
submenu
,
qtr
(
"&Manage"
),
""
,
SLOT
(
bookmarksDialog
()
),
"Ctrl+B"
);
submenu
->
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