API REVIEW: slideIn() -> itemSlideIn()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800702
This commit is contained in:
parent
16e79457e8
commit
b88c344091
@ -126,7 +126,7 @@ void Animator::itemActivated(qreal frame, QGraphicsItem* item)
|
||||
Q_UNUSED(item)
|
||||
}
|
||||
|
||||
void Animator::slideIn(qreal progress, QGraphicsItem *item, const QPoint &start, const QPoint &destination)
|
||||
void Animator::itemSlideIn(qreal progress, QGraphicsItem *item, const QPoint &start, const QPoint &destination)
|
||||
{
|
||||
double x = start.x() + (destination.x() - start.x()) * progress;
|
||||
double y = start.y() + (destination.y() - start.y()) * progress;
|
||||
|
@ -64,7 +64,7 @@ public:
|
||||
virtual void itemActivated(qreal progress, QGraphicsItem* item);
|
||||
|
||||
// Item movements
|
||||
virtual void slideIn(qreal progress, QGraphicsItem* item, const QPoint &start, const QPoint &destination);
|
||||
virtual void itemSlideIn(qreal progress, QGraphicsItem* item, const QPoint &start, const QPoint &destination);
|
||||
virtual void slideOut(qreal progress, QGraphicsItem* item, const QPoint &start, const QPoint &destination);
|
||||
|
||||
private:
|
||||
|
@ -151,7 +151,7 @@ class Phase::Private
|
||||
case Phase::SlideIn:
|
||||
case Phase::FastSlideIn:
|
||||
//kDebug() << "performMovement, SlideIn";
|
||||
animator->slideIn(amount, state->item, state->start, state->destination);
|
||||
animator->itemSlideIn(amount, state->item, state->start, state->destination);
|
||||
break;
|
||||
case Phase::SlideOut:
|
||||
case Phase::FastSlideOut:
|
||||
|
Loading…
Reference in New Issue
Block a user