don't forward events if there is no mainItem
reviewed by: "Bhushan Shah" <bhush94@gmail.com> Change-Id: I73227ee1a8f55bf167e4f41758b95a5558ebbeb3
This commit is contained in:
parent
ce1ba8a687
commit
cb3c53a616
@ -1030,6 +1030,7 @@ bool Dialog::event(QEvent *event)
|
|||||||
/*Fitt's law: if the containment has margins, and the mouse cursor clicked
|
/*Fitt's law: if the containment has margins, and the mouse cursor clicked
|
||||||
* on the mouse edge, forward the click in the containment boundaries
|
* on the mouse edge, forward the click in the containment boundaries
|
||||||
*/
|
*/
|
||||||
|
id (d->mainItem) {
|
||||||
switch (event->type()) {
|
switch (event->type()) {
|
||||||
case QEvent::MouseMove:
|
case QEvent::MouseMove:
|
||||||
case QEvent::MouseButtonPress:
|
case QEvent::MouseButtonPress:
|
||||||
@ -1106,6 +1107,7 @@ bool Dialog::event(QEvent *event)
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const bool retval = QQuickWindow::event(event);
|
const bool retval = QQuickWindow::event(event);
|
||||||
if (event->type() != QEvent::DeferredDelete) {
|
if (event->type() != QEvent::DeferredDelete) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user