facotr can be more than 1

svn path=/trunk/KDE/kdelibs/; revision=1041153
This commit is contained in:
Marco Martin 2009-10-27 13:59:40 +00:00
parent 67065e2ed2
commit 6c0f314c8b
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -45,12 +45,12 @@ class GrowAnimation : public Animation
public:
GrowAnimation(qreal factor = 0.5);
GrowAnimation(qreal factor = 2);
virtual ~GrowAnimation(){};
qreal factor() const;
void setFactor(qreal);
void setFactor(const qreal factor);
protected: