Skip to content

Commit 7b347c7

Browse files
committed
[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
1 parent 3e53c39 commit 7b347c7

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/gui/qgscomposerview.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -152,16 +152,10 @@ void QgsComposerView::mousePressEvent( QMouseEvent* e )
152152
QPointF snappedScenePoint = composition()->snapPointToGrid( scenePoint );
153153
mMousePressStartPos = e->pos();
154154

155-
//lock/unlock position of item with right click
156155
if ( e->button() == Qt::RightButton )
157156
{
158-
QgsComposerItem* selectedItem = composition()->composerItemAt( scenePoint );
159-
if ( selectedItem )
160-
{
161-
bool lock = selectedItem->positionLock() ? false : true;
162-
selectedItem->setPositionLock( lock );
163-
selectedItem->update();
164-
}
157+
//ignore right clicks for now
158+
//TODO - show context menu
165159
return;
166160
}
167161
else if ( e->button() == Qt::MidButton )

0 commit comments

Comments
 (0)