mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-13 05:01:30 +00:00
Hide cursor in presentation mode after 3 seconds
svn path=/branches/kpdf_experiments/kdegraphics/kpdf/; revision=374489
This commit is contained in:
parent
2cd31678ce
commit
6a3c3d6c97
|
@ -13,6 +13,7 @@
|
|||
#include <qpainter.h>
|
||||
#include <qapplication.h>
|
||||
#include <qdesktopwidget.h>
|
||||
#include <kcursor.h>
|
||||
#include <ktoolbar.h>
|
||||
#include <kdebug.h>
|
||||
#include <klocale.h>
|
||||
|
@ -87,6 +88,9 @@ PresentationWidget::PresentationWidget( KPDFDocument * doc )
|
|||
generatePage();
|
||||
else
|
||||
slotNextPage();
|
||||
|
||||
KCursor::setAutoHideCursor( this, true );
|
||||
KCursor::setHideCursorDelay( 3000 );
|
||||
}
|
||||
|
||||
PresentationWidget::~PresentationWidget()
|
||||
|
@ -495,6 +499,8 @@ void PresentationWidget::slotNextPage()
|
|||
m_transitionTimer->stop();
|
||||
update();
|
||||
}
|
||||
|
||||
setFocus();
|
||||
}
|
||||
|
||||
void PresentationWidget::slotPrevPage()
|
||||
|
|
Loading…
Reference in a new issue