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:
parent
00f1382f27
commit
9add143a40
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue