More intuitive keyboard shortcuts for rotation

This patch manually assigns the accelerator for Rotate Left and Rotate Right.
The automatic acceleration sometimes assigns 'R' to Rotate Left due to it being first,
which seems counter-intuitive to me.
This patch makes 'Rotate Right' as 'R' and 'Rotate Left' as 'L'.

Review request: http://svn.reviewboard.kde.org/r/5579/

svn path=/trunk/KDE/kdegraphics/okular/; revision=1185250
This commit is contained in:
Nikhil Marathe 2010-10-12 18:05:21 +00:00
parent 0f08bfbcf0
commit a59a80c98d

View file

@ -363,12 +363,12 @@ void PageView::setupActions( KActionCollection * ac )
d->actionCollection = ac;
// orientation menu actions
d->aRotateClockwise = new KAction( KIcon( "object-rotate-right" ), i18n( "Rotate Right" ), this );
d->aRotateClockwise = new KAction( KIcon( "object-rotate-right" ), i18n( "Rotate &Right" ), this );
d->aRotateClockwise->setIconText( i18nc( "Rotate right", "Right" ) );
ac->addAction( "view_orientation_rotate_cw", d->aRotateClockwise );
d->aRotateClockwise->setEnabled( false );
connect( d->aRotateClockwise, SIGNAL( triggered() ), this, SLOT( slotRotateClockwise() ) );
d->aRotateCounterClockwise = new KAction( KIcon( "object-rotate-left" ), i18n( "Rotate Left" ), this );
d->aRotateCounterClockwise = new KAction( KIcon( "object-rotate-left" ), i18n( "Rotate &Left" ), this );
d->aRotateCounterClockwise->setIconText( i18nc( "Rotate left", "Left" ) );
ac->addAction( "view_orientation_rotate_ccw", d->aRotateCounterClockwise );
d->aRotateCounterClockwise->setEnabled( false );