From 4d4fa829cd3ebeb284e691d7d928b67366f3cbf0 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Fri, 8 May 2015 16:05:17 +0200 Subject: Extend context menu actions Implements the several missing context menu actions for navigation and image and media handling. Change-Id: Ib8ea8311ea291fe2f98e509bc6f4034a5e0389c9 Reviewed-by: Andras Becsi --- src/core/type_conversion.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core/type_conversion.h') diff --git a/src/core/type_conversion.h b/src/core/type_conversion.h index 66fcd4dd0..3f5575a47 100644 --- a/src/core/type_conversion.h +++ b/src/core/type_conversion.h @@ -92,6 +92,11 @@ inline QPoint toQt(const gfx::Point &point) return QPoint(point.x(), point.y()); } +inline gfx::Point toGfx(const QPoint& point) +{ + return gfx::Point(point.x(), point.y()); +} + inline QRect toQt(const gfx::Rect &rect) { return QRect(rect.x(), rect.y(), rect.width(), rect.height()); -- cgit v1.2.3