remove dead code; background rendering ended up somewhere completely different
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=723925
This commit is contained in:
parent
0f66f80fe2
commit
e9517a938b
@ -124,11 +124,6 @@ void Animator::slideOut(qreal progress, QGraphicsItem *item, const QPoint &desti
|
||||
item->translate(destination.x(), destination.y());
|
||||
}
|
||||
|
||||
void Animator::renderBackground(QImage& background)
|
||||
{
|
||||
Q_UNUSED(background)
|
||||
}
|
||||
|
||||
} // Plasma namespace
|
||||
|
||||
#include "animator.moc"
|
||||
|
@ -65,9 +65,6 @@ public:
|
||||
virtual void slideIn(qreal progress, QGraphicsItem* item, const QPoint &destination);
|
||||
virtual void slideOut(qreal progress, QGraphicsItem* item, const QPoint &destination);
|
||||
|
||||
// Rendering
|
||||
virtual void renderBackground(QImage& background);
|
||||
|
||||
private:
|
||||
class Private;
|
||||
Private * const d;
|
||||
|
10
phase.cpp
10
phase.cpp
@ -257,16 +257,6 @@ void Phase::moveItem(QGraphicsItem* item, Movement movement, const QPoint &desti
|
||||
}
|
||||
}
|
||||
|
||||
void Phase::render(QGraphicsItem* item, QImage& image, RenderOp op)
|
||||
{
|
||||
Q_UNUSED(item);
|
||||
switch (op) {
|
||||
case RenderBackground:
|
||||
d->animator->renderBackground(image);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Phase::AnimId Phase::animateElement(QGraphicsItem *item, ElementAnimation animation)
|
||||
{
|
||||
//kDebug() << "startElementAnimation(AnimId " << animation << ")";
|
||||
|
7
phase.h
7
phase.h
@ -39,7 +39,6 @@ class PLASMA_EXPORT Phase : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_ENUMS( Animation )
|
||||
Q_ENUMS( RenderOp )
|
||||
Q_ENUMS( CurveShape )
|
||||
Q_ENUMS( Movement )
|
||||
|
||||
@ -58,11 +57,6 @@ public:
|
||||
ElementDisappear /*<< Animate the disappearance of an element */
|
||||
};
|
||||
|
||||
enum RenderOp
|
||||
{
|
||||
RenderBackground = 0 /*<< Render the background of an item */
|
||||
};
|
||||
|
||||
enum CurveShape
|
||||
{
|
||||
EaseInCurve = 0,
|
||||
@ -89,7 +83,6 @@ public:
|
||||
|
||||
Q_INVOKABLE void animateItem(QGraphicsItem* item, Animation anim);
|
||||
Q_INVOKABLE void moveItem(QGraphicsItem* item, Movement movement, const QPoint &destination);
|
||||
Q_INVOKABLE void render(QGraphicsItem* item, QImage& image, RenderOp op);
|
||||
|
||||
AnimId animateElement(QGraphicsItem *obj, ElementAnimation);
|
||||
void stopElementAnimation(AnimId id);
|
||||
|
Loading…
Reference in New Issue
Block a user