From 9784dd8d06565177a302d4dabec0b6555a958e53 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Tue, 24 Jul 2012 16:10:52 +0200 Subject: Implement implicit constructors for built-in classes. Change-Id: I6b0b104bc1da3252d014615c50b81830de42e722 Reviewed-by: Marc Mutz Reviewed-by: Olivier Goffart --- src/gui/painting/qpolygon.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/painting/qpolygon.h') diff --git a/src/gui/painting/qpolygon.h b/src/gui/painting/qpolygon.h index 726ed434ed..df94a2570e 100644 --- a/src/gui/painting/qpolygon.h +++ b/src/gui/painting/qpolygon.h @@ -142,6 +142,8 @@ public: /*implicit*/ QPolygonF(const QPolygon &a); inline void swap(QPolygonF &other) { QVector::swap(other); } // prevent QVector<->QPolygonF swaps + operator QVariant() const; + inline void translate(qreal dx, qreal dy); void translate(const QPointF &offset); -- cgit v1.2.3