fix coding style
svn path=/trunk/KDE/kdelibs/; revision=1041163
This commit is contained in:
parent
6c0f314c8b
commit
28bab1f99d
@ -42,21 +42,22 @@ QAbstractAnimation* SlideAnimation::render(QObject* parent)
|
|||||||
qreal newX = x;
|
qreal newX = x;
|
||||||
qreal newY = y;
|
qreal newY = y;
|
||||||
|
|
||||||
|
kDebug()<<direction( );
|
||||||
switch (direction()) {
|
switch (direction()) {
|
||||||
case MoveUp:
|
case MoveUp:
|
||||||
newY = y - distance();
|
newY -= distance();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MoveRight:
|
case MoveRight:
|
||||||
newX = x + distance();
|
newX += distance();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MoveDown:
|
case MoveDown:
|
||||||
newY = y + distance();
|
newY += distance();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MoveLeft:
|
case MoveLeft:
|
||||||
newX = x - distance();
|
newX -= distance();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MoveUpRight:
|
case MoveUpRight:
|
||||||
|
Loading…
Reference in New Issue
Block a user