From 8b313a1b793a3f670e416eede1ae8e5a0994684f Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 22 Nov 2012 18:56:58 +0100 Subject: [PATCH] ignore own events only steal events of objects that are explicitely filtered fixes the handle when is under the shadow --- applet.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/applet.cpp b/applet.cpp index bb2354cad..f7358d1d2 100644 --- a/applet.cpp +++ b/applet.cpp @@ -1827,6 +1827,10 @@ bool Applet::sceneEventFilter(QGraphicsItem *watched, QEvent *event) case QEvent::GraphicsSceneMousePress: case QEvent::GraphicsSceneMouseRelease: { + if (watched == this) { + event->setAccepted(false); + return false; + } // don't move when the containment is not mutable, // in the rare case the containment doesn't exists consider it as mutable if ((flags() & ItemIsMovable) && d->registeredAsDragHandle.contains(watched)) {