Skip to content
Permalink
Browse files

[composer] Ignore locked items when using move item content tool. Kee…

…ps a

consistent behaviour with the move/resize item tool, and allows for
moving item content for maps which are stacked below locked items.
  • Loading branch information
nyalldawson committed Sep 29, 2014
1 parent 73f9833 commit 583151af3cc975cb196374bdba0e3bd1ced21f3d
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgscomposerview.cpp
@@ -304,13 +304,13 @@ void QgsComposerView::mousePressEvent( QMouseEvent* e )
return;
}

//find highest QgsComposerItem at clicked position
//find highest non-locked QgsComposerItem at clicked position
//(other graphics items may be higher, eg selection handles)
QList<QGraphicsItem*>::iterator itemIter = itemsAtCursorPos.begin();
for ( ; itemIter != itemsAtCursorPos.end(); ++itemIter )
{
QgsComposerItem* item = dynamic_cast<QgsComposerItem *>(( *itemIter ) );
if ( item )
if ( item && !item->positionLock() )
{
//we've found the highest QgsComposerItem
mMoveContentStartPos = scenePoint;

0 comments on commit 583151a

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