better gradient when the handle is at left

svn path=/trunk/KDE/kdelibs/; revision=1039135
This commit is contained in:
Marco Martin 2009-10-22 20:01:19 +00:00
parent 33b5a8f082
commit 82177676af

View File

@ -229,8 +229,8 @@ void AppletHandle::paint(QPainter *painter, const QStyleOptionGraphicsItem *opti
qreal opaquePoint =
1 - ((m_background->marginSize(RightMargin) + translation) / m_decorationRect.width());
g.setColorAt(1.0, Qt::transparent);
g.setColorAt(opaquePoint, Qt::transparent);
g.setColorAt(qMax(0.0, opaquePoint - 0.05), transparencyColor);
g.setColorAt(opaquePoint + 0.05, Qt::transparent);
g.setColorAt(qMax(0.0, opaquePoint), transparencyColor);
g.setColorAt(0.0, transparencyColor);
}
//complete panel