kcms/decoration: Fix highlight when hovering the preview

The preview item implements hover event filters, which by default
are accepted and not propagated to their parent, breaking the
hightlight on hover for the GridView.

We can simply "ignore()" those events so they are propagated,
but still fully functional.

Preemptively, do the same also for mouse events, which seem to be
already propagated now, but shouldn't according to the QQuickItem
documentation.

CCBUG: 473011
This commit is contained in:
Ismael Asensio 2023-08-18 17:06:11 +02:00
parent 00f1382f27
commit 9add143a40

View file

@ -298,6 +298,8 @@ void PreviewItem::proxyPassEvent(E *event) const
} else {
QCoreApplication::instance()->sendEvent(decoration(), event);
}
// Propagate events to parent
event->ignore();
}
void PreviewItem::mouseDoubleClickEvent(QMouseEvent *event)