[vlc-commits] qt: provide UI always on top option in "view" menu
Pierre Lamot
git at videolan.org
Tue Nov 28 09:53:21 CET 2017
vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Wed Nov 15 17:09:36 2017 +0100| [b87cf2adb7da0a5b3b27eb4e1cc1de454aac49a2] | committer: Jean-Baptiste Kempf
qt: provide UI always on top option in "view" menu
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b87cf2adb7da0a5b3b27eb4e1cc1de454aac49a2
---
modules/gui/qt/menus.cpp | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt/menus.cpp b/modules/gui/qt/menus.cpp
index a73d91157c..f73be7df07 100644
--- a/modules/gui/qt/menus.cpp
+++ b/modules/gui/qt/menus.cpp
@@ -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();
More information about the vlc-commits
mailing list