Changing remaining classes to use qreal instead of double or int.

svn path=/trunk/KDE/kdelibs/; revision=1036743
This commit is contained in:
Adenilson Cavalcanti Da Silva 2009-10-17 17:52:19 +00:00
parent 7ccf35e9fd
commit 298998fa71
8 changed files with 10 additions and 11 deletions

View File

@ -26,7 +26,7 @@
namespace Plasma namespace Plasma
{ {
ExpandAnimation::ExpandAnimation(AnimationDirection direction, int distance) ExpandAnimation::ExpandAnimation(AnimationDirection direction, qreal distance)
: m_direction(direction), : m_direction(direction),
m_distance(distance) m_distance(distance)
{ {

View File

@ -42,7 +42,7 @@ class PLASMA_EXPORT ExpandAnimation : public Animation
Q_OBJECT Q_OBJECT
public: public:
ExpandAnimation(AnimationDirection direction, int distance); ExpandAnimation(AnimationDirection direction, qreal distance);
virtual ~ExpandAnimation(){}; virtual ~ExpandAnimation(){};
protected: protected:
@ -50,7 +50,7 @@ protected:
private: private:
AnimationDirection m_direction; AnimationDirection m_direction;
int m_distance; qreal m_distance;
}; };

View File

@ -26,7 +26,7 @@
namespace Plasma namespace Plasma
{ {
FadeAnimation::FadeAnimation(double factor) FadeAnimation::FadeAnimation(qreal factor)
{ {
AnimationPrivate *obj = getAnimationPrivate(); AnimationPrivate *obj = getAnimationPrivate();
obj->animFactor = factor; obj->animFactor = factor;

View File

@ -41,8 +41,7 @@ class PLASMA_EXPORT FadeAnimation : public Animation
Q_OBJECT Q_OBJECT
public: public:
/* TODO: convert to qreal */ FadeAnimation(qreal factor);
FadeAnimation(double factor);
virtual ~FadeAnimation(){}; virtual ~FadeAnimation(){};
protected: protected:

View File

@ -26,7 +26,7 @@
namespace Plasma namespace Plasma
{ {
GrowAnimation::GrowAnimation(double factor) GrowAnimation::GrowAnimation(qreal factor)
{ {
getAnimationPrivate()->animFactor = factor; getAnimationPrivate()->animFactor = factor;
} }

View File

@ -44,7 +44,7 @@ class PLASMA_EXPORT GrowAnimation : public Animation
public: public:
/* TODO: convert to qreal */ /* TODO: convert to qreal */
GrowAnimation(double factor); GrowAnimation(qreal factor);
virtual ~GrowAnimation(){}; virtual ~GrowAnimation(){};
protected: protected:

View File

@ -27,7 +27,7 @@
namespace Plasma namespace Plasma
{ {
SlideAnimation::SlideAnimation(AnimationDirection direction, int distance) SlideAnimation::SlideAnimation(AnimationDirection direction, qreal distance)
: m_direction(direction), : m_direction(direction),
m_distance(distance), m_distance(distance),
m_end_visibility(true) m_end_visibility(true)

View File

@ -42,7 +42,7 @@ class PLASMA_EXPORT SlideAnimation : public Animation
Q_OBJECT Q_OBJECT
public: public:
SlideAnimation(AnimationDirection direction, int distance); SlideAnimation(AnimationDirection direction, qreal distance);
virtual ~SlideAnimation(){}; virtual ~SlideAnimation(){};
/** /**
* Set if the widget is visible at the end of the animation (default True). * Set if the widget is visible at the end of the animation (default True).
@ -55,7 +55,7 @@ protected:
private: private:
AnimationDirection m_direction; AnimationDirection m_direction;
int m_distance; qreal m_distance;
//bool m_beginning_visibility; //bool m_beginning_visibility;
bool m_end_visibility; bool m_end_visibility;