API REVIEW: slideOut() -> itemSlideOut()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800706
This commit is contained in:
parent
b88c344091
commit
0b28813b3e
@ -133,7 +133,7 @@ void Animator::itemSlideIn(qreal progress, QGraphicsItem *item, const QPoint &st
|
||||
item->setPos(x, y);
|
||||
}
|
||||
|
||||
void Animator::slideOut(qreal progress, QGraphicsItem *item, const QPoint &start, const QPoint &destination)
|
||||
void Animator::itemSlideOut(qreal progress, QGraphicsItem *item, const QPoint &start, const QPoint &destination)
|
||||
{
|
||||
//kDebug();
|
||||
double x = start.x() + (destination.x() - start.x()) * progress;
|
||||
|
@ -65,7 +65,7 @@ public:
|
||||
|
||||
// Item movements
|
||||
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);
|
||||
virtual void itemSlideOut(qreal progress, QGraphicsItem* item, const QPoint &start, const QPoint &destination);
|
||||
|
||||
private:
|
||||
class Private;
|
||||
|
@ -156,7 +156,7 @@ class Phase::Private
|
||||
case Phase::SlideOut:
|
||||
case Phase::FastSlideOut:
|
||||
//kDebug() << "performMovement, SlideOut";
|
||||
animator->slideOut(amount, state->item, state->start, state->destination);
|
||||
animator->itemSlideOut(amount, state->item, state->start, state->destination);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user