From 79323a439949a81db7facd52afe7bf2756544f98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaros=C5=82aw=20Staniek?= Date: Fri, 24 Aug 2007 07:14:24 +0000 Subject: [PATCH] GCC 3.3.5: fixed error before '.' svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=704155 --- applet.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/applet.cpp b/applet.cpp index 4d89c48fc..745ad57db 100644 --- a/applet.cpp +++ b/applet.cpp @@ -706,10 +706,11 @@ void Applet::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QW //TODO: make pretty. painter->setBrush(QBrush(color(), Qt::SolidPattern)); painter->drawRoundRect(boundingRect()); - int iconDim = KIconLoader().currentSize(K3Icon::Desktop); + int iconDim = KIconLoader::global()->currentSize(K3Icon::Desktop); qreal midX = (boundingRect().width() / 2) - (iconDim / 2); qreal midY = (boundingRect().height() / 2) - (iconDim / 2); - KIcon(icon()).paint(painter, (int)midX, (int)midY, iconDim, iconDim); + KIcon ico(icon()); + ico.paint(painter, (int)midX, (int)midY, iconDim, iconDim); }/* else if (zoomLevel == scalingFactor(Plasma::OverviewZoom)) { //Show Groups only } */ }