Skip to content

Commit

Permalink
[composer] Holding alt while pressing arrow keys results in moving it…
Browse files Browse the repository at this point in the history
…ems 1 pixel
  • Loading branch information
nyalldawson committed Aug 19, 2014
1 parent 9d18220 commit f9b15d3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/gui/qgscomposerview.cpp
Expand Up @@ -1399,6 +1399,15 @@ void QgsComposerView::keyPressEvent( QKeyEvent * e )
//holding shift while pressing cursor keys results in a big step
increment = 10.0;
}
else if ( e->modifiers() & Qt::AltModifier )
{
//holding alt while pressing cursor keys results in a 1 pixel step
double viewScale = transform().m11();
if ( viewScale > 0 )
{
increment = 1 / viewScale;
}
}

if ( e->key() == Qt::Key_Left )
{
Expand Down

0 comments on commit f9b15d3

Please sign in to comment.