Align to grid, and slightly smaller frame
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770404
This commit is contained in:
parent
be64c5939d
commit
08771bb763
@ -511,9 +511,10 @@ void Icon::Private::drawBackground(QPainter *painter, IconState state)
|
|||||||
}
|
}
|
||||||
|
|
||||||
painter->save();
|
painter->save();
|
||||||
|
painter->translate(0.5, 0.5);
|
||||||
painter->setRenderHint(QPainter::Antialiasing);
|
painter->setRenderHint(QPainter::Antialiasing);
|
||||||
painter->setBrush(shadow);
|
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->drawPath(roundedRectangle(QRectF(QPointF(1, 1), QSize(currentSize.width()-2, currentSize.height()-2)), 5.0));
|
||||||
painter->restore();
|
painter->restore();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user