mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-24 10:25:36 +00:00
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:
parent
a38e6e7e70
commit
537b828e50
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue