Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
b87cf2ad
Commit
b87cf2ad
authored
Nov 15, 2017
by
Pierre Lamot
Committed by
Jean-Baptiste Kempf
Nov 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt: provide UI always on top option in "view" menu
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
a254cd2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
modules/gui/qt/menus.cpp
modules/gui/qt/menus.cpp
+12
-2
No files found.
modules/gui/qt/menus.cpp
View file @
b87cf2ad
...
...
@@ -238,7 +238,6 @@ static int VideoAutoMenuBuilder( playlist_t *pl, input_thread_t *p_input,
PUSH_INPUTVAR
(
"video-es"
);
PUSH_PLVAR
(
"fullscreen"
);
PUSH_PLVAR
(
"video-on-top"
);
PUSH_PLVAR
(
"video-wallpaper"
);
PUSH_VAR
(
"video-snapshot"
);
PUSH_VAR
(
"zoom"
);
...
...
@@ -497,6 +496,13 @@ QMenu *VLCMenuBar::ViewMenu( intf_thread_t *p_intf, QMenu *current, MainInterfac
menu
->
addSeparator
();
action
=
menu
->
addAction
(
qtr
(
"Always on &top"
)
);
action
->
setCheckable
(
true
);
action
->
setChecked
(
mi
->
isInterfaceAlwaysOnTop
()
);
CONNECT
(
action
,
triggered
(
bool
),
mi
,
setInterfaceAlwaysOnTop
(
bool
)
);
menu
->
addSeparator
();
/* Minimal View */
action
=
menu
->
addAction
(
qtr
(
"Mi&nimal Interface"
)
);
action
->
setShortcut
(
qtr
(
"Ctrl+H"
)
);
...
...
@@ -533,6 +539,11 @@ QMenu *VLCMenuBar::ViewMenu( intf_thread_t *p_intf, QMenu *current, MainInterfac
if( visual_selector_enabled ) adv->setChecked( true );
#endif
action
=
menu
->
addAction
(
qtr
(
"Always on &top"
)
);
action
->
setCheckable
(
true
);
action
->
setChecked
(
mi
->
isInterfaceAlwaysOnTop
()
);
CONNECT
(
action
,
triggered
(
bool
),
mi
,
setInterfaceAlwaysOnTop
(
bool
)
);
menu
->
addSeparator
();
InterfacesMenu
(
p_intf
,
menu
);
...
...
@@ -678,7 +689,6 @@ QMenu *VLCMenuBar::VideoMenu( intf_thread_t *p_intf, QMenu *current )
/* Surface modifiers */
addActionWithCheckbox
(
current
,
"fullscreen"
,
qtr
(
"&Fullscreen"
)
);
addActionWithCheckbox
(
current
,
"autoscale"
,
qtr
(
"Always Fit &Window"
)
);
addActionWithCheckbox
(
current
,
"video-on-top"
,
qtr
(
"Always &on Top"
)
);
addActionWithCheckbox
(
current
,
"video-wallpaper"
,
qtr
(
"Set as Wall&paper"
)
);
current
->
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