Coding style.

svn path=/trunk/KDE/kdelibs/; revision=1038339
This commit is contained in:
Adenilson Cavalcanti Da Silva 2009-10-21 05:35:56 +00:00
parent a1bf0fd085
commit 38726c368a

View File

@ -21,9 +21,6 @@
///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
#include "rotation.h" #include "rotation.h"
/* TODO:
* - revise coding style
*/
#include <QGraphicsRotation> #include <QGraphicsRotation>
namespace Plasma namespace Plasma
@ -31,14 +28,10 @@ namespace Plasma
class RotationAnimationPrivate { class RotationAnimationPrivate {
public: public:
RotationAnimationPrivate()
{
}
~RotationAnimationPrivate()
{
}
/* TODO: check if the rotation object will be deleted
* when the animation runs
*/
QGraphicsRotation *rotation; QGraphicsRotation *rotation;
}; };
@ -80,6 +73,7 @@ QPropertyAnimation *RotationAnimation::render(QObject *parent)
vector.setY(widgetHeight); vector.setY(widgetHeight);
break; break;
} }
} else if(axis() == Qt::YAxis) { } else if(axis() == Qt::YAxis) {
switch (reference()) { switch (reference()) {
case Center: case Center:
@ -92,6 +86,7 @@ QPropertyAnimation *RotationAnimation::render(QObject *parent)
vector.setX(widgetWidth); vector.setX(widgetWidth);
break; break;
} }
} else if (axis() == Qt::ZAxis) { } else if (axis() == Qt::ZAxis) {
switch (reference()) { switch (reference()) {
case Center: case Center: