Skip to content

Commit

Permalink
[composer] Remove right-click to lock for composer items (fix #5592),…
Browse files Browse the repository at this point in the history
… 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 7b347c7
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/gui/qgscomposerview.cpp
Expand Up @@ -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 )
Expand Down

0 comments on commit 7b347c7

Please sign in to comment.