Skip to content

Commit

Permalink
Add some other guide/ruler related actions to ruler right click menu
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 7, 2017
1 parent 6687564 commit 89f0ecd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/layout/qgslayoutdesignerdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit 89f0ecd

Please sign in to comment.