translate the painter to draw in a less blurry way, this was getting way

too annoying...

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=848919
This commit is contained in:
Marco Martin 2008-08-18 17:57:37 +00:00
parent 46ef63168e
commit 23839efb30

View File

@ -206,6 +206,8 @@ void AppletHandle::paint(QPainter *painter, const QStyleOptionGraphicsItem *opti
painter->setPen(Qt::NoPen); painter->setPen(Qt::NoPen);
painter->setRenderHints(QPainter::Antialiasing); painter->setRenderHints(QPainter::Antialiasing);
painter->translate(0.5, 0.5);
QPainterPath path = handleRect(m_rect, 10, m_buttonsOnRight); QPainterPath path = handleRect(m_rect, 10, m_buttonsOnRight);
painter->strokePath(path, m_gradientColor); painter->strokePath(path, m_gradientColor);