[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdegraphics/okular/ui
From: Pino Toscano <toscano.pino () tiscali ! it>
Date: 2007-04-30 22:04:11
Message-ID: 1177970651.543898.28329.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 659849 by pino:
hopefully make really use in presentation mode of the global shortcuts for \
first/last/next/prev page
M +8 -7 presentationwidget.cpp
--- trunk/KDE/kdegraphics/okular/ui/presentationwidget.cpp #659848:659849
@@ -232,6 +232,10 @@
void PresentationWidget::setupActions( KActionCollection * collection )
{
m_ac = collection;
+ addAction( m_ac->action( "previous_page" ) );
+ addAction( m_ac->action( "next_page" ) );
+ addAction( m_ac->action( "first_page" ) );
+ addAction( m_ac->action( "last_page" ) );
}
@@ -263,16 +267,13 @@
{
if (m_width == -1) return;
-#ifdef __GNUC__
-#warning FIX the usage of KActionCollection actions
-#endif
- if ( /*e->key() == m_ac->action( "previous_page" )->shortcut().keyQt() || \
*/e->key() == Qt::Key_Left || e->key() == Qt::Key_Backspace || e->key() == \
Qt::Key_PageUp ) + if ( e->key() == Qt::Key_Left || e->key() == Qt::Key_Backspace \
|| e->key() == Qt::Key_PageUp ) slotPrevPage();
- else if ( /*e->key() == m_ac->action( "next_page" )->shortcut().keyQt() || \
*/e->key() == Qt::Key_Right || e->key() == Qt::Key_Space || e->key() == \
Qt::Key_PageDown ) + else if ( e->key() == Qt::Key_Right || e->key() == \
Qt::Key_Space || e->key() == Qt::Key_PageDown ) slotNextPage();
- else if ( /*e->key() == m_ac->action( "first_page" )->shortcut().keyQt() || \
*/e->key() == Qt::Key_Home ) + else if ( e->key() == Qt::Key_Home )
slotFirstPage();
- else if ( /*e->key() == m_ac->action( "last_page" )->shortcut().keyQt() || \
*/e->key() == Qt::Key_End ) + else if ( e->key() == Qt::Key_End )
slotLastPage();
else if ( e->key() == Qt::Key_Escape )
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic