path: root/src/plugins/platforms/ios/
diff options
authorTor Arne Vestbø <>2016-05-18 15:28:26 +0200
committerJake Petroules <>2016-06-14 17:22:55 +0000
commit197471beacf5589802cb91f1ceba59ed99cbb511 (patch)
tree7e0e3d8f6e436de99c5024de5566f42a2504e606 /src/plugins/platforms/ios/
parentf862946c228f111e9572c6103faf526260fed04d (diff)
darwin: Add Foundation conversion functions for QPoint/QPointF
The fromCGPoint function was left out for QPoint, as the foundation type is using CGFloats internally. Clients should use an explicit QPointF::toPoint() when potentially throwing away precision. Change-Id: I12a37e8f81c86b7ada56066cc18ee29709cc21e3 Reviewed-by: Tor Arne Vestbø <> Reviewed-by: Jake Petroules <>
Diffstat (limited to 'src/plugins/platforms/ios/')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/ios/ b/src/plugins/platforms/ios/
index 088d651e2e..bf929667a6 100644
--- a/src/plugins/platforms/ios/
+++ b/src/plugins/platforms/ios/
@@ -329,7 +329,7 @@
// as we already have the QWindow positioned at the right place, we can
// just map from the local view position to global coordinates.
// tvOS: all touches start at the center of the screen and move from there.
- QPoint localViewPosition = fromCGPoint([uiTouch locationInView:self]).toPoint();
+ QPoint localViewPosition = QPointF::fromCGPoint([uiTouch locationInView:self]).toPoint();
QPoint globalScreenPosition = m_qioswindow->mapToGlobal(localViewPosition);
touchPoint.area = QRectF(globalScreenPosition, QSize(0, 0));