Skip to content
Permalink
Browse files

[FEATURE] Allow panning compositions by dragging with middle mouse bu…

…tton
  • Loading branch information
nyalldawson committed Oct 10, 2013
1 parent 8a61767 commit eb0c794eb2cac361354641acaae82f7cf6ff8f4e
Showing with 13 additions and 0 deletions.
  1. +13 −0 src/gui/qgscomposerview.cpp
@@ -105,6 +105,19 @@ void QgsComposerView::mousePressEvent( QMouseEvent* e )
}
return;
}
else if ( e->button() == Qt::MidButton )
{
//pan composer with middle button
mPanning = true;
mMouseLastXY = e->pos();
if ( composition() )
{
//lock cursor to closed hand cursor
composition()->setPreventCursorChange( true );
}
viewport()->setCursor( Qt::ClosedHandCursor );
return;
}

switch ( mCurrentTool )
{

0 comments on commit eb0c794

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