From 298998fa71d83927cee879bcdec0ec593f305611 Mon Sep 17 00:00:00 2001 From: Adenilson Cavalcanti Da Silva Date: Sat, 17 Oct 2009 17:52:19 +0000 Subject: [PATCH] Changing remaining classes to use qreal instead of double or int. svn path=/trunk/KDE/kdelibs/; revision=1036743 --- animations/expand.cpp | 2 +- animations/expand.h | 4 ++-- animations/fade.cpp | 2 +- animations/fade.h | 3 +-- animations/grow.cpp | 2 +- animations/grow.h | 2 +- animations/slide.cpp | 2 +- animations/slide.h | 4 ++-- 8 files changed, 10 insertions(+), 11 deletions(-) diff --git a/animations/expand.cpp b/animations/expand.cpp index f0f5d9eac..894994d17 100644 --- a/animations/expand.cpp +++ b/animations/expand.cpp @@ -26,7 +26,7 @@ namespace Plasma { -ExpandAnimation::ExpandAnimation(AnimationDirection direction, int distance) +ExpandAnimation::ExpandAnimation(AnimationDirection direction, qreal distance) : m_direction(direction), m_distance(distance) { diff --git a/animations/expand.h b/animations/expand.h index 7b79086c4..6d8e85fe5 100644 --- a/animations/expand.h +++ b/animations/expand.h @@ -42,7 +42,7 @@ class PLASMA_EXPORT ExpandAnimation : public Animation Q_OBJECT public: - ExpandAnimation(AnimationDirection direction, int distance); + ExpandAnimation(AnimationDirection direction, qreal distance); virtual ~ExpandAnimation(){}; protected: @@ -50,7 +50,7 @@ protected: private: AnimationDirection m_direction; - int m_distance; + qreal m_distance; }; diff --git a/animations/fade.cpp b/animations/fade.cpp index c290c90fe..4455e3fb3 100644 --- a/animations/fade.cpp +++ b/animations/fade.cpp @@ -26,7 +26,7 @@ namespace Plasma { -FadeAnimation::FadeAnimation(double factor) +FadeAnimation::FadeAnimation(qreal factor) { AnimationPrivate *obj = getAnimationPrivate(); obj->animFactor = factor; diff --git a/animations/fade.h b/animations/fade.h index 1d9158ef8..c364054c9 100644 --- a/animations/fade.h +++ b/animations/fade.h @@ -41,8 +41,7 @@ class PLASMA_EXPORT FadeAnimation : public Animation Q_OBJECT public: - /* TODO: convert to qreal */ - FadeAnimation(double factor); + FadeAnimation(qreal factor); virtual ~FadeAnimation(){}; protected: diff --git a/animations/grow.cpp b/animations/grow.cpp index 19e956686..a16d1c7ec 100644 --- a/animations/grow.cpp +++ b/animations/grow.cpp @@ -26,7 +26,7 @@ namespace Plasma { -GrowAnimation::GrowAnimation(double factor) +GrowAnimation::GrowAnimation(qreal factor) { getAnimationPrivate()->animFactor = factor; } diff --git a/animations/grow.h b/animations/grow.h index a84b9fe37..b3fc1c0dc 100644 --- a/animations/grow.h +++ b/animations/grow.h @@ -44,7 +44,7 @@ class PLASMA_EXPORT GrowAnimation : public Animation public: /* TODO: convert to qreal */ - GrowAnimation(double factor); + GrowAnimation(qreal factor); virtual ~GrowAnimation(){}; protected: diff --git a/animations/slide.cpp b/animations/slide.cpp index 441e7941c..e507c95af 100644 --- a/animations/slide.cpp +++ b/animations/slide.cpp @@ -27,7 +27,7 @@ namespace Plasma { -SlideAnimation::SlideAnimation(AnimationDirection direction, int distance) +SlideAnimation::SlideAnimation(AnimationDirection direction, qreal distance) : m_direction(direction), m_distance(distance), m_end_visibility(true) diff --git a/animations/slide.h b/animations/slide.h index 6a3137cc1..23912f1af 100644 --- a/animations/slide.h +++ b/animations/slide.h @@ -42,7 +42,7 @@ class PLASMA_EXPORT SlideAnimation : public Animation Q_OBJECT public: - SlideAnimation(AnimationDirection direction, int distance); + SlideAnimation(AnimationDirection direction, qreal distance); virtual ~SlideAnimation(){}; /** * Set if the widget is visible at the end of the animation (default True). @@ -55,7 +55,7 @@ protected: private: AnimationDirection m_direction; - int m_distance; + qreal m_distance; //bool m_beginning_visibility; bool m_end_visibility;