[vlmc-devel] Add separators to the view menu
Yikai Lu
git at videolan.org
Fri Aug 12 18:16:10 CEST 2016
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Fri Aug 12 10:56:50 2016 -0500| [dcfb3625b4e3df4a6f1fe400fa4dbae1ea310ee3] | committer: Yikai Lu
Add separators to the view menu
> https://code.videolan.org/videolan/vlmc/commit/dcfb3625b4e3df4a6f1fe400fa4dbae1ea310ee3
---
src/Gui/MainWindow.cpp | 2 +-
src/Gui/ui/MainWindow.ui | 12 ++++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
index e7e104a..aa7b5d0 100644
--- a/src/Gui/MainWindow.cpp
+++ b/src/Gui/MainWindow.cpp
@@ -759,7 +759,7 @@ MainWindow::on_actionFullscreen_triggered( bool checked )
void
MainWindow::registerWidgetInWindowMenu( QDockWidget* widget )
{
- m_ui.menuView->insertAction( m_ui.actionFullscreen, widget->toggleViewAction() );
+ m_ui.menuView->insertAction( m_ui.widgetsSeparator, widget->toggleViewAction() );
}
void
diff --git a/src/Gui/ui/MainWindow.ui b/src/Gui/ui/MainWindow.ui
index 92a7cc9..5cd4233 100644
--- a/src/Gui/ui/MainWindow.ui
+++ b/src/Gui/ui/MainWindow.ui
@@ -77,7 +77,11 @@
</property>
<addaction name="actionToolbar"/>
<addaction name="actionStatusbar"/>
+ <addaction name="widgetsSeparator"/>
+ <addaction name="separator"/>
<addaction name="actionFullscreen"/>
+ <addaction name="separator"/>
+ <addaction name="actionLock"/>
</widget>
<widget class="QMenu" name="menuTools">
<property name="title">
@@ -384,6 +388,14 @@
<string>Lock</string>
</property>
</action>
+ <action name="widgetsSeparator">
+ <property name="text">
+ <string>widgetsSeparator</string>
+ </property>
+ <property name="visible">
+ <bool>false</bool>
+ </property>
+ </action>
</widget>
<resources>
<include location="../../../resources.qrc"/>
More information about the Vlmc-devel
mailing list