KDE/kdebase/workspace/libs/plasma
Aaron J. Seigo
aseigo at kde.org
Mon Mar 3 20:53:13 CET 2008
SVN commit 781885 by aseigo:
don't expand unless we actually cross the threshold; this prevents, e.g. expanding when closing a window or moving from a window title bar to the canvas when the title bar overlaps the toolbox
CCMAIL:panel-devel at kde.org
M +12 -0 desktoptoolbox.cpp
--- trunk/KDE/kdebase/workspace/libs/plasma/desktoptoolbox.cpp #781884:781885
@@ -159,6 +159,18 @@
QGraphicsItem::hoverEnterEvent(event);
return;
}
+
+ QPainterPath path;
+ int size = m_size + (int)m_animFrame - 5;
+ path.moveTo(m_size*2, 0);
+ path.arcTo(QRectF(m_size * 2 - size, -size, size*2, size*2), 180, 90);
+ path.lineTo(m_size*2, 0);
+
+ if (path.contains(event->pos())) {
+ QGraphicsItem::hoverEnterEvent(event);
+ return;
+ }
+
showToolbox();
QGraphicsItem::hoverEnterEvent(event);
}
More information about the Panel-devel
mailing list