Skip to content
Permalink
Browse files

[composer] Holding alt while pressing arrow keys results in moving it…

…ems 1 pixel
  • Loading branch information
nyalldawson committed Aug 19, 2014
1 parent 9d18220 commit f9b15d3471d51f1718f03816cb65f98ddf37c261
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/gui/qgscomposerview.cpp
@@ -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 )
{

0 comments on commit f9b15d3

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