mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-04 17:30:34 +02:00
Fixing android errors
This commit is contained in:
parent
5aa15b5422
commit
24545f8b58
1 changed files with 4 additions and 4 deletions
|
@ -173,8 +173,8 @@ bool OffscreenSurface::eventFilter(QObject* originalDestination, QEvent* event)
|
||||||
auto &newPoint = newTouchPoints[i];
|
auto &newPoint = newTouchPoints[i];
|
||||||
newPoint.setPos(originalPoint.pos());
|
newPoint.setPos(originalPoint.pos());
|
||||||
}
|
}
|
||||||
fakeEvent->setTouchPoints(newTouchPoints);
|
fakeEvent.setTouchPoints(newTouchPoints);
|
||||||
if (QCoreApplication::sendEvent(_quickWindow, &fakeEvent)) {
|
if (QCoreApplication::sendEvent(_sharedObject->getWindow(), &fakeEvent)) {
|
||||||
qInfo() << __FUNCTION__ << "sent fake touch event:" << fakeEvent.type()
|
qInfo() << __FUNCTION__ << "sent fake touch event:" << fakeEvent.type()
|
||||||
<< "_quickWindow handled it... accepted:" << fakeEvent.isAccepted();
|
<< "_quickWindow handled it... accepted:" << fakeEvent.isAccepted();
|
||||||
return false; //event->isAccepted();
|
return false; //event->isAccepted();
|
||||||
|
@ -183,9 +183,9 @@ bool OffscreenSurface::eventFilter(QObject* originalDestination, QEvent* event)
|
||||||
}
|
}
|
||||||
case QEvent::InputMethod:
|
case QEvent::InputMethod:
|
||||||
case QEvent::InputMethodQuery: {
|
case QEvent::InputMethodQuery: {
|
||||||
if (_quickWindow && _quickWindow->activeFocusItem()) {
|
if (_sharedObject->getWindow() && _sharedObject->getWindow()->activeFocusItem()) {
|
||||||
event->ignore();
|
event->ignore();
|
||||||
if (QCoreApplication::sendEvent(_quickWindow->activeFocusItem(), event)) {
|
if (QCoreApplication::sendEvent(_sharedObject->getWindow()->activeFocusItem(), event)) {
|
||||||
return event->isAccepted();
|
return event->isAccepted();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue