Commit cad5fe48 authored by Pino Toscano's avatar Pino Toscano

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

svn path=/trunk/KDE/kdegraphics/okular/; revision=752443
parent 288fce0b
......@@ -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() );
......
......@@ -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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment