Make isAnimated() to be const and also move a method comment to .h file, I guess it'll be more helpful there ;)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=795840
This commit is contained in:
Dmitry Suzdalev 2008-04-11 15:01:34 +00:00
parent be10ede60a
commit 9dc3a849bf
2 changed files with 5 additions and 3 deletions

View File

@ -489,8 +489,7 @@ QPixmap Phase::animationResult(AnimId id)
return state->pixmap;
}
//returns true if there are animations happening.
bool Phase::isAnimating()
bool Phase::isAnimating() const
{
return (d->animatedItems.size() > 0 ||
d->movingItems.size() > 0 ||

View File

@ -116,7 +116,10 @@ public:
Q_INVOKABLE void setAnimationPixmap(AnimId id, const QPixmap &pixmap);
Q_INVOKABLE QPixmap animationResult(AnimId id);
Q_INVOKABLE bool isAnimating();
/**
* @return true if there are animations happening
*/
Q_INVOKABLE bool isAnimating() const;
Q_SIGNALS:
void animationComplete(QGraphicsItem *item, Plasma::Phase::Animation anim);