use the new document{Back|Forward}() standard actions

svn path=/trunk/KDE/kdegraphics/okular/; revision=752443
This commit is contained in:
Pino Toscano 2007-12-24 13:11:19 +00:00
parent 288fce0b82
commit cad5fe4806
2 changed files with 4 additions and 6 deletions

View file

@ -1639,12 +1639,10 @@ void Part::unsetDummyMode()
m_sidebar->setSidebarVisibility( Okular::Settings::showLeftPanel() );
// add back and next in history
m_historyBack = KStandardAction::back( this, SLOT( slotHistoryBack() ), actionCollection() );
actionCollection()->addAction("history_back",m_historyBack);
m_historyBack = KStandardAction::documentBack( this, SLOT( slotHistoryBack() ), actionCollection() );
m_historyBack->setWhatsThis( i18n( "Go to the place you were before" ) );
m_historyNext = KStandardAction::forward( this, SLOT( slotHistoryNext() ), actionCollection());
actionCollection()->addAction("history_forward",m_historyNext);
m_historyNext = KStandardAction::documentForward( this, SLOT( slotHistoryNext() ), actionCollection());
m_historyNext->setWhatsThis( i18n( "Go to the place you were after" ) );
m_pageView->setupActions( actionCollection() );

View file

@ -48,8 +48,8 @@
<Action name="first_page"/>
<Action name="last_page"/>
<Separator/>
<Action name="history_back"/>
<Action name="history_forward" />
<Action name="go_document_back"/>
<Action name="go_document_forward" />
<Separator/>
<Action name="go_goto_page"/>
</Menu>