From b74b254741087730fd8c84ca6e0030efa6865fa8 Mon Sep 17 00:00:00 2001 From: Davide Bettio Date: Thu, 24 Apr 2008 17:57:56 +0000 Subject: [PATCH] API REVIEW: element*(qreal frame, ...) -> element*(qreal progress, ...) svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800707 --- animator.cpp | 8 ++++---- animator.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/animator.cpp b/animator.cpp index fb08735fe..c0ee3216a 100644 --- a/animator.cpp +++ b/animator.cpp @@ -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); diff --git a/animator.h b/animator.h index e78307079..f0af7dcfd 100644 --- a/animator.h +++ b/animator.h @@ -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);