View | Details | Raw Unified | Return to bug 209406
Collapse All | Expand All

(-)deskutils/plasma-applet-playwolf/files/patch-wolflabel.cpp (+19 lines)
Line 0 Link Here
1
--- wolflabel.cpp.orig	2010-01-13 21:33:08 UTC
2
+++ wolflabel.cpp
3
@@ -21,6 +21,7 @@
4
 
5
 #include <QtGui/QStyleFactory>
6
 #include <QtCore/QTimeLine>
7
+#include <QtCore/qmath.h>
8
 #include <QtGui/QGraphicsItemAnimation>
9
 #include <QtGui/QGraphicsSceneResizeEvent>
10
 #include <QtGui/QLabel>
11
@@ -195,7 +196,7 @@ void WolfLabel::paint(QPainter *painter,
12
                     m_animation->setPropertyName("xOffset");
13
                     m_animation->setTargetObject(this);
14
                 }
15
-                m_animation->setDuration((2 * abs(x) + SPACING) * 150);
16
+                m_animation->setDuration((2 * qFabs(x) + SPACING) * 150);
17
                 m_animation->setNewStartValue(x  - SPACING);
18
                 m_animation->setNewEndValue(SPACING);
19
                 if (m_animation->state() != QAbstractAnimation::Running) {

Return to bug 209406