Skip to content
Permalink
Browse files

Add toolbar menu

  • Loading branch information
nyalldawson committed Jul 11, 2017
1 parent 9b9126c commit 76beef42c8a7f47f5195e8d7bd3040dce5f4d539
Showing with 13 additions and 2 deletions.
  1. +11 −0 src/app/layout/qgslayoutdesignerdialog.cpp
  2. +2 −2 src/ui/layout/qgslayoutdesignerbase.ui
@@ -211,6 +211,17 @@ QgsLayoutDesignerDialog::QgsLayoutDesignerDialog( QWidget *parent, Qt::WindowFla
connect( mHorizontalRuler, &QgsLayoutRuler::cursorPosChanged, this, &QgsLayoutDesignerDialog::updateStatusCursorPos );
connect( mVerticalRuler, &QgsLayoutRuler::cursorPosChanged, this, &QgsLayoutDesignerDialog::updateStatusCursorPos );

// Panel and toolbar submenus
QMenu *toolbarMenu = new QMenu( tr( "&Toolbars" ), this );
toolbarMenu->setObjectName( QStringLiteral( "mToolbarMenu" ) );
mMenuView->addSeparator();
mMenuView->addMenu( toolbarMenu );

// toolBar already exists, add other widgets as they are created
toolbarMenu->addAction( mLayoutToolbar->toggleViewAction() );
toolbarMenu->addAction( mNavigationToolbar->toggleViewAction() );
toolbarMenu->addAction( mToolsToolbar->toggleViewAction() );

restoreWindowState();
}

@@ -54,7 +54,7 @@
<widget class="QStatusBar" name="mStatusBar"/>
<widget class="QToolBar" name="mLayoutToolbar">
<property name="windowTitle">
<string>Composer</string>
<string>Layout</string>
</property>
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
@@ -115,7 +115,7 @@
</widget>
<widget class="QToolBar" name="mNavigationToolbar">
<property name="windowTitle">
<string>toolBar</string>
<string>Navigation</string>
</property>
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>

0 comments on commit 76beef4

Please sign in to comment.
You can’t perform that action at this time.