Skip to content
Permalink
Browse files

Add some other guide/ruler related actions to ruler right click menu

  • Loading branch information
nyalldawson committed Jul 27, 2017
1 parent 6687564 commit 89f0ecd369eaa3071db4bae35012443599b013d9
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/app/layout/qgslayoutdesignerdialog.cpp
@@ -125,8 +125,12 @@ QgsLayoutDesignerDialog::QgsLayoutDesignerDialog( QWidget *parent, Qt::WindowFla
connect( mActionShowRulers, &QAction::triggered, this, &QgsLayoutDesignerDialog::showRulers );

QMenu *rulerMenu = new QMenu( this );
rulerMenu->addAction( mActionShowGuides );
rulerMenu->addAction( mActionSnapGuides );
rulerMenu->addAction( mActionManageGuides );
rulerMenu->addAction( mActionClearGuides );
rulerMenu->addSeparator();
rulerMenu->addAction( mActionShowRulers );
mHorizontalRuler->setContextMenu( rulerMenu );
mVerticalRuler->setContextMenu( rulerMenu );

0 comments on commit 89f0ecd

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