From 08771bb763dd2713b6a777c5be04aa43d1573d53 Mon Sep 17 00:00:00 2001 From: Riccardo Iaconelli Date: Sun, 3 Feb 2008 16:56:53 +0000 Subject: [PATCH] Align to grid, and slightly smaller frame svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770404 --- widgets/icon.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/widgets/icon.cpp b/widgets/icon.cpp index a24a5a22d..1be685d59 100644 --- a/widgets/icon.cpp +++ b/widgets/icon.cpp @@ -511,9 +511,10 @@ void Icon::Private::drawBackground(QPainter *painter, IconState state) } painter->save(); + painter->translate(0.5, 0.5); painter->setRenderHint(QPainter::Antialiasing); painter->setBrush(shadow); - painter->setPen(QPen(border, 2.0)); + painter->setPen(QPen(border, 1)); painter->drawPath(roundedRectangle(QRectF(QPointF(1, 1), QSize(currentSize.width()-2, currentSize.height()-2)), 5.0)); painter->restore(); }