added proper KStandardAction's in presentationwidget.cpp

This commit is contained in:
Christopher Reichert 2011-06-19 11:22:29 -05:00
parent 831294d3dc
commit 5be0a98725

View file

@ -369,12 +369,12 @@ bool PresentationWidget::canUnloadPixmap( int pageNumber ) const
void PresentationWidget::setupActions( KActionCollection * collection ) void PresentationWidget::setupActions( KActionCollection * collection )
{ {
m_ac = collection; m_ac = collection;
addAction( m_ac->action( "go_previous" ) );
addAction( m_ac->action( "go_next" ) );
addAction( m_ac->action( "first_page" ) ); addAction( m_ac->action( "first_page" ) );
addAction( m_ac->action( "last_page" ) ); addAction( m_ac->action( "last_page" ) );
addAction( m_ac->action( "go_document_back" ) ); addAction( m_ac->action( KStandardAction::name( KStandardAction::Prior ) ) );
addAction( m_ac->action( "go_document_forward" ) ); addAction( m_ac->action( KStandardAction::name( KStandardAction::Next ) ) );
addAction( m_ac->action( KStandardAction::name( KStandardAction::DocumentBack ) ) );
addAction( m_ac->action( KStandardAction::name( KStandardAction::DocumentForward ) ) );
QAction *action = m_ac->action( "switch_blackscreen_mode" ); QAction *action = m_ac->action( "switch_blackscreen_mode" );
connect( action, SIGNAL( toggled( bool ) ), SLOT( toggleBlackScreenMode( bool ) ) ); connect( action, SIGNAL( toggled( bool ) ), SLOT( toggleBlackScreenMode( bool ) ) );