From 1aac8cb29397a844f87bbaf294cb6711b4b3ce42 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Sat, 9 Jan 2010 17:30:40 +0000 Subject: [PATCH] set the proper values for the 3d vector svn path=/trunk/KDE/kdelibs/; revision=1072233 --- animations/rotation.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/animations/rotation.cpp b/animations/rotation.cpp index 797e6ae86..99430e47a 100644 --- a/animations/rotation.cpp +++ b/animations/rotation.cpp @@ -89,12 +89,15 @@ void RotationAnimation::updateState(QAbstractAnimation::State newState, QAbstrac if (axis() == Qt::XAxis) { switch (reference()) { case Center: + vector.setX(widgetWidth/2); vector.setY(widgetHeight/2); break; case Up: + vector.setX(widgetWidth/2); vector.setY(0); break; case Down: + vector.setX(widgetWidth/2); vector.setY(widgetHeight); break; } @@ -103,12 +106,15 @@ void RotationAnimation::updateState(QAbstractAnimation::State newState, QAbstrac switch (reference()) { case Center: vector.setX(widgetWidth/2); + vector.setY(widgetHeight/2); break; case Left: vector.setX(0); + vector.setY(widgetHeight/2); break; case Right: vector.setX(widgetWidth); + vector.setY(widgetHeight/2); break; }