ignore own events
only steal events of objects that are explicitely filtered fixes the handle when is under the shadow
This commit is contained in:
parent
f297f1fee6
commit
8b313a1b79
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user