facotr can be more than 1
svn path=/trunk/KDE/kdelibs/; revision=1041153
This commit is contained in:
parent
67065e2ed2
commit
6c0f314c8b
@ -30,9 +30,9 @@ GrowAnimation::GrowAnimation(qreal factor)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void GrowAnimation::setFactor(qreal factor)
|
void GrowAnimation::setFactor(const qreal factor)
|
||||||
{
|
{
|
||||||
m_animFactor = qBound(qreal(0.0), factor, qreal(1.0));
|
m_animFactor = qMax(qreal(0.0), factor);
|
||||||
}
|
}
|
||||||
|
|
||||||
qreal GrowAnimation::factor() const
|
qreal GrowAnimation::factor() const
|
||||||
|
@ -45,12 +45,12 @@ class GrowAnimation : public Animation
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
GrowAnimation(qreal factor = 0.5);
|
GrowAnimation(qreal factor = 2);
|
||||||
virtual ~GrowAnimation(){};
|
virtual ~GrowAnimation(){};
|
||||||
|
|
||||||
qreal factor() const;
|
qreal factor() const;
|
||||||
|
|
||||||
void setFactor(qreal);
|
void setFactor(const qreal factor);
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user