for now, disable the animation of the review toolbar, as it seems to be slow sometimes

#define OKULAR_ANIMATE_REVIEW_TOOBAR to re-eanble it

svn path=/trunk/KDE/kdegraphics/okular/; revision=736304
This commit is contained in:
Pino Toscano 2007-11-13 22:04:04 +00:00
parent a38e6e7e70
commit 537b828e50

View file

@ -455,8 +455,16 @@ void PageViewToolBar::showAndAnimate()
show();
#ifdef OKULAR_ANIMATE_REVIEW_TOOBAR
// start scrolling in
d->animTimer->start( 20 );
#else
d->currentPosition = d->endPosition;
move( d->currentPosition );
d->visible = true;
#endif
}
void PageViewToolBar::hideAndDestroy()
@ -465,8 +473,17 @@ void PageViewToolBar::hideAndDestroy()
d->hiding = true;
d->endPosition = d->getOuterPoint();
#ifdef OKULAR_ANIMATE_REVIEW_TOOBAR
// start scrolling out
d->animTimer->start( 20 );
#else
d->currentPosition = d->endPosition;
move( d->currentPosition );
d->visible = false;
deleteLater();
#endif
}
void PageViewToolBar::selectButton( int id )