Commit 14f5e894 authored by Enrico Ros's avatar Enrico Ros

applying patch_069 [great number]

svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=425014
parent 829ff79a
......@@ -171,11 +171,15 @@ bool PresentationWidget::canUnloadPixmap( int pageNumber )
void PresentationWidget::keyPressEvent( QKeyEvent * e )
{
if (m_width == -1) return;
if ( e->key() == Key_Left || e->key() == Key_Backspace || e->key() == Key_Prior )
slotPrevPage();
else if ( e->key() == Key_Right || e->key() == Key_Space || e->key() == Key_Next )
slotNextPage();
else if ( e->key() == Key_Home )
slotFirstPage();
else if ( e->key() == Key_End )
slotLastPage();
else if ( e->key() == Key_Escape )
{
if ( m_topBar->isShown() )
......@@ -584,6 +588,16 @@ void PresentationWidget::slotPrevPage()
}
}
void PresentationWidget::slotFirstPage()
{
changePage( 0 );
}
void PresentationWidget::slotLastPage()
{
changePage( (int)m_frames.count() - 1 );
}
void PresentationWidget::slotHideOverlay()
{
QRect geom( m_overlayGeometry );
......
......@@ -86,6 +86,8 @@ class PresentationWidget : public QWidget, public DocumentObserver
private slots:
void slotNextPage();
void slotPrevPage();
void slotFirstPage();
void slotLastPage();
void slotHideOverlay();
void slotTransitionStep();
};
......
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