From 1596dbf081ff52d3fe07fdccfd69ffdf1b28e92c Mon Sep 17 00:00:00 2001 From: Maximilian Goldstein Date: Fri, 23 Oct 2020 12:03:19 +0200 Subject: qqmlvaluetypes: Add a few missing toString methods Implements toString for QQmlPointValueType, QQmlRectValueType and QQmlSizeValueType. Change-Id: Ia8dad072453caea24f6f351cf3da9d0ed085b2a1 Reviewed-by: Ulf Hermann --- src/qml/qml/qqmlvaluetype_p.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/qml/qml/qqmlvaluetype_p.h') diff --git a/src/qml/qml/qqmlvaluetype_p.h b/src/qml/qml/qqmlvaluetype_p.h index db2c1d5cbc..aaef422627 100644 --- a/src/qml/qml/qqmlvaluetype_p.h +++ b/src/qml/qml/qqmlvaluetype_p.h @@ -155,6 +155,7 @@ struct QQmlPointValueType QML_ADDED_IN_VERSION(2, 0) public: + Q_INVOKABLE QString toString() const; int x() const; int y() const; void setX(int); @@ -191,6 +192,7 @@ struct QQmlSizeValueType QML_ADDED_IN_VERSION(2, 0) public: + Q_INVOKABLE QString toString() const; int width() const; int height() const; void setWidth(int); @@ -249,6 +251,7 @@ struct QQmlRectValueType QML_ADDED_IN_VERSION(2, 0) public: + Q_INVOKABLE QString toString() const; int x() const; int y() const; void setX(int); -- cgit v1.2.3