From 7634beebf3f922fc0aa577a40234a7b699014abf Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Mon, 30 Jul 2007 20:29:10 +0000 Subject: [PATCH] a bit of extra debug output here plus a mod to the icon demo so i can show bibr in a couple days the interesting ways in which event handling is broken svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=694478 --- widgets/icon.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/widgets/icon.cpp b/widgets/icon.cpp index 353908266..40343a4f9 100644 --- a/widgets/icon.cpp +++ b/widgets/icon.cpp @@ -299,6 +299,7 @@ bool IconAction::event(QEvent::Type type, const QPointF &pos) break; case QEvent::MouseButtonRelease: { + kDebug() << "IconAction::event got a QEvent::MouseButtonRelease, " << isSelected() << endl; bool wasSelected = isSelected(); setSelected(false); if (wasSelected) { @@ -668,6 +669,7 @@ bool Icon::isDown() void Icon::mousePressEvent(QGraphicsSceneMouseEvent *event) { +kDebug() << "Icon::mousePressEvent " << endl; foreach (IconAction *action, d->cornerActions) { action->event(event->type(), event->pos()); } @@ -680,8 +682,8 @@ void Icon::mousePressEvent(QGraphicsSceneMouseEvent *event) void Icon::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) { bool inside = boundingRect().contains(event->pos()); +kDebug() << "Icon::mouseReleaseEvent " << inside << endl; Private::ButtonState was = d->state; - if (inside) { d->state = Private::HoverState;