diff options
Diffstat (limited to 'src/core/type_conversion.h')
-rw-r--r-- | src/core/type_conversion.h | 5 |
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()); |