API REVIEW: element*(qreal frame, ...) -> element*(qreal progress, ...)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800707
This commit is contained in:
parent
0b28813b3e
commit
b74b254741
@ -93,15 +93,15 @@ Phase::CurveShape Animator::curve(Plasma::Phase::ElementAnimation) const
|
|||||||
return Phase::EaseInOutCurve;
|
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;
|
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());
|
QPixmap pix(pixmap.size());
|
||||||
pix.fill(Qt::transparent);
|
pix.fill(Qt::transparent);
|
||||||
|
|
||||||
|
@ -55,8 +55,8 @@ public:
|
|||||||
virtual Phase::CurveShape curve(Plasma::Phase::ElementAnimation) const;
|
virtual Phase::CurveShape curve(Plasma::Phase::ElementAnimation) const;
|
||||||
|
|
||||||
// Element animations
|
// Element animations
|
||||||
virtual QPixmap elementAppear(qreal frame, const QPixmap& pixmap);
|
virtual QPixmap elementAppear(qreal progress, const QPixmap& pixmap);
|
||||||
virtual QPixmap elementDisappear(qreal frame, const QPixmap& pixmap);
|
virtual QPixmap elementDisappear(qreal progress, const QPixmap& pixmap);
|
||||||
|
|
||||||
// Item animations
|
// Item animations
|
||||||
virtual void itemAppear(qreal progress, QGraphicsItem* item);
|
virtual void itemAppear(qreal progress, QGraphicsItem* item);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user