src/gui/kernel/qapplication_s60.cpp
branchRCL_3
changeset 17 4b6ee5efea19
parent 14 c0432d11811c
equal deleted inserted replaced
16:b25b6dc3ff8b 17:4b6ee5efea19
   438             }
   438             }
   439             if (event->PointerNumber() == 0)
   439             if (event->PointerNumber() == 0)
   440                 state |= Qt::TouchPointPrimary;
   440                 state |= Qt::TouchPointPrimary;
   441             touchPoint.setState(state);
   441             touchPoint.setState(state);
   442 
   442 
   443             QPointF screenPos = QPointF(event->iPosition.iX, event->iPosition.iY);
   443             QPointF screenPos = qwidget->mapToGlobal(QPoint(event->iPosition.iX, event->iPosition.iY));
   444             touchPoint.setScreenPos(screenPos);
   444             touchPoint.setScreenPos(screenPos);
   445             touchPoint.setNormalizedPos(QPointF(screenPos.x() / screenGeometry.width(),
   445             touchPoint.setNormalizedPos(QPointF(screenPos.x() / screenGeometry.width(),
   446                                                 screenPos.y() / screenGeometry.height()));
   446                                                 screenPos.y() / screenGeometry.height()));
   447 
   447 
   448             touchPoint.setPressure(event->Pressure() / qreal(d->maxTouchPressure));
   448             touchPoint.setPressure(event->Pressure() / qreal(d->maxTouchPressure));