Changing remaining classes to use qreal instead of double or int.
svn path=/trunk/KDE/kdelibs/; revision=1036743
This commit is contained in:
parent
7ccf35e9fd
commit
298998fa71
@ -26,7 +26,7 @@
|
||||
namespace Plasma
|
||||
{
|
||||
|
||||
ExpandAnimation::ExpandAnimation(AnimationDirection direction, int distance)
|
||||
ExpandAnimation::ExpandAnimation(AnimationDirection direction, qreal distance)
|
||||
: m_direction(direction),
|
||||
m_distance(distance)
|
||||
{
|
||||
|
@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
namespace Plasma
|
||||
{
|
||||
|
||||
FadeAnimation::FadeAnimation(double factor)
|
||||
FadeAnimation::FadeAnimation(qreal factor)
|
||||
{
|
||||
AnimationPrivate *obj = getAnimationPrivate();
|
||||
obj->animFactor = factor;
|
||||
|
@ -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:
|
||||
|
@ -26,7 +26,7 @@
|
||||
namespace Plasma
|
||||
{
|
||||
|
||||
GrowAnimation::GrowAnimation(double factor)
|
||||
GrowAnimation::GrowAnimation(qreal factor)
|
||||
{
|
||||
getAnimationPrivate()->animFactor = factor;
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ class PLASMA_EXPORT GrowAnimation : public Animation
|
||||
|
||||
public:
|
||||
/* TODO: convert to qreal */
|
||||
GrowAnimation(double factor);
|
||||
GrowAnimation(qreal factor);
|
||||
virtual ~GrowAnimation(){};
|
||||
|
||||
protected:
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user