QNX: Fix touch position
Change-Id: I8e4f83f58fbb31f7cffdf74b0ce431a6fd46f13b Reviewed-by: Bernd Weimer <bweimer@blackberry.com> Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
This commit is contained in:
parent
2aee54c738
commit
02abe7921b
@ -457,7 +457,7 @@ void QQnxScreenEventHandler::handleTouchEvent(screen_event_t event, int qnxType)
|
||||
|
||||
m_touchPoints[touchId].area = QRectF(w->geometry().left() + windowPos[0] - (touchArea[0]>>1),
|
||||
w->geometry().top() + windowPos[1] - (touchArea[1]>>1),
|
||||
0.0, 0.0);
|
||||
(touchArea[0]>>1), (touchArea[1]>>1));
|
||||
QWindow *parent = w->parent();
|
||||
while (parent) {
|
||||
m_touchPoints[touchId].area.translate(parent->geometry().topLeft());
|
||||
|
Loading…
Reference in New Issue
Block a user