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