From 24545f8b58171a3cad1a4fd5806f307c3a3cfd5c Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Mon, 26 Feb 2018 10:18:30 -0800 Subject: [PATCH] Fixing android errors --- libraries/qml/src/qml/OffscreenSurface.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/qml/src/qml/OffscreenSurface.cpp b/libraries/qml/src/qml/OffscreenSurface.cpp index fdb15a0ebd..56b2c13e95 100644 --- a/libraries/qml/src/qml/OffscreenSurface.cpp +++ b/libraries/qml/src/qml/OffscreenSurface.cpp @@ -173,8 +173,8 @@ bool OffscreenSurface::eventFilter(QObject* originalDestination, QEvent* event) auto &newPoint = newTouchPoints[i]; newPoint.setPos(originalPoint.pos()); } - fakeEvent->setTouchPoints(newTouchPoints); - if (QCoreApplication::sendEvent(_quickWindow, &fakeEvent)) { + fakeEvent.setTouchPoints(newTouchPoints); + if (QCoreApplication::sendEvent(_sharedObject->getWindow(), &fakeEvent)) { qInfo() << __FUNCTION__ << "sent fake touch event:" << fakeEvent.type() << "_quickWindow handled it... accepted:" << fakeEvent.isAccepted(); return false; //event->isAccepted(); @@ -183,9 +183,9 @@ bool OffscreenSurface::eventFilter(QObject* originalDestination, QEvent* event) } case QEvent::InputMethod: case QEvent::InputMethodQuery: { - if (_quickWindow && _quickWindow->activeFocusItem()) { + if (_sharedObject->getWindow() && _sharedObject->getWindow()->activeFocusItem()) { event->ignore(); - if (QCoreApplication::sendEvent(_quickWindow->activeFocusItem(), event)) { + if (QCoreApplication::sendEvent(_sharedObject->getWindow()->activeFocusItem(), event)) { return event->isAccepted(); } return false;