don't remove the applet itself from the scenevent filter when deregistering as a drag handle
the event filter is also used for things like the applet handle
This commit is contained in:
parent
9ef2c42b42
commit
d65132f92f
@ -1651,9 +1651,11 @@ void Applet::unregisterAsDragHandle(QGraphicsItem *item)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (d->registeredAsDragHandle.remove(item)) {
|
if (d->registeredAsDragHandle.remove(item)) {
|
||||||
|
if (item != this) {
|
||||||
item->removeSceneEventFilter(this);
|
item->removeSceneEventFilter(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool Applet::isRegisteredAsDragHandle(QGraphicsItem *item)
|
bool Applet::isRegisteredAsDragHandle(QGraphicsItem *item)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user