API REVIEW: element*(qreal frame, ...) -> element*(qreal progress, ...)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800707
This commit is contained in:
Davide Bettio 2008-04-24 17:57:56 +00:00
parent 0b28813b3e
commit b74b254741
2 changed files with 6 additions and 6 deletions

View File

@ -93,15 +93,15 @@ Phase::CurveShape Animator::curve(Plasma::Phase::ElementAnimation) const
return Phase::EaseInOutCurve;
}
QPixmap Animator::elementAppear(qreal frame, const QPixmap& pixmap)
QPixmap Animator::elementAppear(qreal progress, const QPixmap& pixmap)
{
Q_UNUSED(frame)
Q_UNUSED(progress)
return pixmap;
}
QPixmap Animator::elementDisappear(qreal frame, const QPixmap& pixmap)
QPixmap Animator::elementDisappear(qreal progress, const QPixmap& pixmap)
{
Q_UNUSED(frame)
Q_UNUSED(progress)
QPixmap pix(pixmap.size());
pix.fill(Qt::transparent);

View File

@ -55,8 +55,8 @@ public:
virtual Phase::CurveShape curve(Plasma::Phase::ElementAnimation) const;
// Element animations
virtual QPixmap elementAppear(qreal frame, const QPixmap& pixmap);
virtual QPixmap elementDisappear(qreal frame, const QPixmap& pixmap);
virtual QPixmap elementAppear(qreal progress, const QPixmap& pixmap);
virtual QPixmap elementDisappear(qreal progress, const QPixmap& pixmap);
// Item animations
virtual void itemAppear(qreal progress, QGraphicsItem* item);