[vlc-devel] [PATCH v2 2/4] qt: provide UI always on top option in "view" menu

Pierre Lamot pierre at videolabs.io
Wed Nov 15 17:09:36 CET 2017


---
 modules/gui/qt/menus.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/gui/qt/menus.cpp b/modules/gui/qt/menus.cpp
index a73d91157c..dbcab7b21f 100644
--- a/modules/gui/qt/menus.cpp
+++ b/modules/gui/qt/menus.cpp
@@ -533,6 +533,11 @@ QMenu *VLCMenuBar::ViewMenu( intf_thread_t *p_intf, QMenu *current, MainInterfac
     if( visual_selector_enabled ) adv->setChecked( true );
 #endif
 
+    action = menu->addAction( qtr( "Interface on &top" ) );
+    action->setCheckable( true );
+    action->setChecked( mi->isInterfaceAlwaysOnTop() );
+    CONNECT( action, triggered( bool ), mi, setInterfaceAlwaysOnTop( bool ) );
+
     menu->addSeparator();
 
     InterfacesMenu( p_intf, menu );
-- 
2.14.1



More information about the vlc-devel mailing list