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:
parent
be10ede60a
commit
9dc3a849bf
@ -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 ||
|
||||
|
5
phase.h
5
phase.h
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user