Improvements to isAnimating().

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=795851
This commit is contained in:
Rob Scheepmaker 2008-04-11 16:09:11 +00:00
parent 9dc3a849bf
commit 3b21177823
2 changed files with 5 additions and 4 deletions

View File

@ -491,10 +491,10 @@ QPixmap Phase::animationResult(AnimId id)
bool Phase::isAnimating() const
{
return (d->animatedItems.size() > 0 ||
d->movingItems.size() > 0 ||
d->animatedItems.size() > 0 ||
d->customAnims.size() > 0);
return (!d->animatedItems.isEmpty() ||
!d->movingItems.isEmpty() ||
!d->animatedElements.isEmpty() ||
!d->customAnims.isEmpty());
}
void Phase::timerEvent(QTimerEvent *event)

View File

@ -118,6 +118,7 @@ public:
/**
* @return true if there are animations happening
* @since 4.1
*/
Q_INVOKABLE bool isAnimating() const;