From 7e975d764cab8ef0c1287e9e3d20d8cfa353f151 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 24 Sep 2008 15:59:29 +0000 Subject: [PATCH] make it compile on arm svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=864367 --- private/applethandle.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/private/applethandle.cpp b/private/applethandle.cpp index a33dfc4a7..d10afd409 100644 --- a/private/applethandle.cpp +++ b/private/applethandle.cpp @@ -250,8 +250,8 @@ void AppletHandle::paint(QPainter *painter, const QStyleOptionGraphicsItem *opti int iconMargin = m_iconSize / 2; - const QSize pixmapSize(m_decorationRect.width(), m_decorationRect.height() + m_iconSize*4 + 1); - const QSizeF iconSize(KIconLoader::SizeSmall, KIconLoader::SizeSmall); + const QSize pixmapSize(int(m_decorationRect.width()), int(m_decorationRect.height()) + m_iconSize*4 + 1); + const QSize iconSize(KIconLoader::SizeSmall, KIconLoader::SizeSmall); //regenerate our buffer? if (m_animId > 0 || !m_backgroundBuffer || m_backgroundBuffer->size() != pixmapSize) { @@ -877,7 +877,7 @@ void AppletHandle::fadeAnimation(qreal progress) m_opacity = 1 - progress; } //kDebug() << "progress" << progress << "m_opacity" << m_opacity;// << endOpacity; - if (qFuzzyCompare(progress, 1.0)) { + if (qFuzzyCompare(progress, qreal(1.0))) { m_animId = 0; delete m_backgroundBuffer; m_backgroundBuffer = 0;