Commit e1470227 authored by Albert Astals Cid's avatar Albert Astals Cid

fordwardport fix for 148026

svn path=/trunk/KDE/kdegraphics/okular/; revision=704883
parent a4dada31
......@@ -1427,6 +1427,17 @@ void Part::slotHidePresentation()
}
void Part::slotTogglePresentation()
{
if ( m_document->isOpened() )
{
if ( !m_presentationWidget )
m_presentationWidget = new PresentationWidget( widget(), m_document );
else delete (PresentationWidget*) m_presentationWidget;
}
}
void Part::slotAboutBackend()
{
const KComponentData *data = m_document->componentData();
......
......@@ -108,6 +108,7 @@ class Part : public KParts::ReadOnlyPart, public Okular::DocumentObserver, publi
Q_SCRIPTABLE void slotNextPage();
Q_SCRIPTABLE void slotGotoFirst();
Q_SCRIPTABLE void slotGotoLast();
Q_SCRIPTABLE void slotTogglePresentation();
signals:
void enablePrintAction(bool enable);
......
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