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
|
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)
|
||||||
{
|
{
|
||||||
|
@ -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;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -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:
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
namespace Plasma
|
namespace Plasma
|
||||||
{
|
{
|
||||||
|
|
||||||
GrowAnimation::GrowAnimation(double factor)
|
GrowAnimation::GrowAnimation(qreal factor)
|
||||||
{
|
{
|
||||||
getAnimationPrivate()->animFactor = factor;
|
getAnimationPrivate()->animFactor = factor;
|
||||||
}
|
}
|
||||||
|
@ -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:
|
||||||
|
@ -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)
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user