mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-05 23:49:20 +00:00
added proper KStandardAction's in presentationwidget.cpp
This commit is contained in:
parent
831294d3dc
commit
5be0a98725
|
@ -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 ) ) );
|
||||||
|
|
Loading…
Reference in a new issue