From d8961b351cf1210361779287958820c715ad2857 Mon Sep 17 00:00:00 2001 From: Seb Ruiz Date: Thu, 22 Nov 2007 07:16:34 +0000 Subject: [PATCH] use correct precision svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=739895 --- animator.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/animator.cpp b/animator.cpp index d12a22a30..07c849a73 100644 --- a/animator.cpp +++ b/animator.cpp @@ -1,6 +1,6 @@ /* * Copyright 2007 Aaron Seigo - * 2007 Alexis Ménard + * 2007 Alexis Ménard * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Library General Public License as @@ -111,16 +111,16 @@ void Animator::frameAppear(qreal frame, QGraphicsItem* item, const QRegion& draw void Animator::slideIn(qreal progress, QGraphicsItem *item, const QPoint &start, const QPoint &destination) { - int x = start.x() + (destination.x() - start.x()) * progress; - int y = start.y() + (destination.y() - start.y()) * progress; + double x = start.x() + (destination.x() - start.x()) * progress; + double y = start.y() + (destination.y() - start.y()) * progress; item->setPos(x, y); } void Animator::slideOut(qreal progress, QGraphicsItem *item, const QPoint &start, const QPoint &destination) { //kDebug(); - int x = start.x() + (destination.x() - start.x()) * progress; - int y = start.y() + (destination.y() - start.y()) * progress; + double x = start.x() + (destination.x() - start.x()) * progress; + double y = start.y() + (destination.y() - start.y()) * progress; item->setPos(x, y); }