restored the toolbox mouse over edge detection, so the annoyance is

back.
at least it does wat is supposed to do now. so some discussion still needed
on what it's supposed to behave...

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802161
This commit is contained in:
Marco Martin 2008-04-28 17:55:34 +00:00
parent c32f8a4511
commit 3e6877ab4d

View File

@ -176,7 +176,7 @@ void DesktopToolbox::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
QPainterPath path;
int toolSize = size() + (int)d->animFrame - 15;
path.moveTo(size()*2, 0);
path.arcTo(QRectF(size() * 2 - toolSize, -toolSize, toolSize*2, toolSize*2), 180, 90);
path.arcTo(QRectF(boundingRect().left() - toolSize, boundingRect().top() - toolSize, toolSize*2, toolSize*2), 180, 90);
path.lineTo(size()*2, 0);
if (path.contains(event->pos())) {