summaryrefslogtreecommitdiffstats
path: root/src/core/type_conversion.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-01-30 17:23:41 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-03-15 16:52:17 +0000
commitd5bffb5125da23718e8098441b4a4269a5cf2f33 (patch)
tree48a39ba7f833116cba7dcc7917d13d34a062949c /src/core/type_conversion.h
parent789f375411b542db3ac3be79cbe0a6153720abf1 (diff)
Basic adaptations for 64-based
Change-Id: I11e2da206e4e59872a38c178f57a5879c1bbf229 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src/core/type_conversion.h')
-rw-r--r--src/core/type_conversion.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/type_conversion.h b/src/core/type_conversion.h
index eb7c9d48b..023bed21e 100644
--- a/src/core/type_conversion.h
+++ b/src/core/type_conversion.h
@@ -132,6 +132,11 @@ inline gfx::Point toGfx(const QPoint& point)
return gfx::Point(point.x(), point.y());
}
+inline gfx::PointF toGfx(const QPointF& point)
+{
+ return gfx::PointF(point.x(), point.y());
+}
+
inline QRect toQt(const gfx::Rect &rect)
{
return QRect(rect.x(), rect.y(), rect.width(), rect.height());