diff --git a/lib/thumbnailview/previewitemdelegate.cpp b/lib/thumbnailview/previewitemdelegate.cpp --- a/lib/thumbnailview/previewitemdelegate.cpp +++ b/lib/thumbnailview/previewitemdelegate.cpp @@ -38,6 +38,8 @@ #include #include #include +#include +#include // KDE #include @@ -57,7 +59,8 @@ #ifndef GWENVIEW_SEMANTICINFO_BACKEND_NONE #include "../semanticinfo/semanticinfodirmodel.h" #endif - +#include +#include // Define this to be able to fine tune the rendering of the selection // background through a config file //#define FINETUNE_SELECTION_BACKGROUND @@ -479,7 +482,9 @@ return; } QSequentialAnimationGroup* anim = new QSequentialAnimationGroup(); - anim->addPause(500); + if ((mToolTipAnimation->state() == QPropertyAnimation::Stopped)) { + anim->addPause(500); + } QPropertyAnimation* fadeOut = new QPropertyAnimation(mToolTip, "opacity"); fadeOut->setStartValue(mToolTip->opacity()); fadeOut->setEndValue(0.);