Skip to content
Permalink
Browse files

[composer] Remove right-click to lock for composer items (fix #5592),…

… now that locked items can be unlocked from the items panel this is no longer required, and frees up right clicks for a composer context menu
  • Loading branch information
nyalldawson committed Jul 30, 2014
1 parent 3e53c39 commit 7b347c70ebd6776717851b758dee5c3ee36088fa
Showing with 2 additions and 8 deletions.
  1. +2 −8 src/gui/qgscomposerview.cpp
@@ -152,16 +152,10 @@ void QgsComposerView::mousePressEvent( QMouseEvent* e )
QPointF snappedScenePoint = composition()->snapPointToGrid( scenePoint );
mMousePressStartPos = e->pos();

//lock/unlock position of item with right click
if ( e->button() == Qt::RightButton )
{
QgsComposerItem* selectedItem = composition()->composerItemAt( scenePoint );
if ( selectedItem )
{
bool lock = selectedItem->positionLock() ? false : true;
selectedItem->setPositionLock( lock );
selectedItem->update();
}
//ignore right clicks for now
//TODO - show context menu
return;
}
else if ( e->button() == Qt::MidButton )

0 comments on commit 7b347c7

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