unbreak glow animation

svn path=/trunk/KDE/kdelibs/; revision=966173
This commit is contained in:
Marco Martin 2009-05-10 14:46:46 +00:00
parent 9b40257b21
commit 30620609ae

View File

@ -300,7 +300,7 @@ void PushButton::paint(QPainter *painter,
}
//if is under mouse draw the animated glow overlay
if (!nativeWidget()->isDown() && nativeWidget()->isChecked() && isEnabled() && acceptHoverEvents()) {
if (!nativeWidget()->isDown() && !nativeWidget()->isChecked() && isEnabled() && acceptHoverEvents()) {
if (d->animId != -1) {
QPixmap normalPix = d->background->framePixmap();
d->background->setElementPrefix("active");