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
{
ExpandAnimation::ExpandAnimation(AnimationDirection direction, int distance)
ExpandAnimation::ExpandAnimation(AnimationDirection direction, qreal distance)
: m_direction(direction),
m_distance(distance)
{

View File

@ -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;
};

View File

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

View File

@ -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:

View File

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

View File

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

View File

@ -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)

View File

@ -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;