[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdegraphics/okular/ui
From:       Nikhil Marathe <nsm.nikhil () gmail ! com>
Date:       2010-10-12 18:05:21
Message-ID: 20101012180521.EB8D1AC894 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1185250 by nikhilm:

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/


 M  +2 -2      pageview.cpp  


--- trunk/KDE/kdegraphics/okular/ui/pageview.cpp #1185249:1185250
@@ -363,12 +363,12 @@
     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 );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic