diff options
author | Frank Meerkoetter <frank.meerkoetter@basyskom.com> | 2015-07-16 22:04:39 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-08-18 20:25:29 +0000 |
commit | 0cbab3b17fb70208476b910d7d82ae653a9a1050 (patch) | |
tree | d2b447d578cf2bd2b16bc89611542ed3fcf06c0b /src/qml/qml/qqmlvmemetaobject_p.h | |
parent | 496b69a6c73c354c0a440a3fc4779eb8325abc4a (diff) |
Port QUrl/QSizeF away from QQmlVmeVariant
Store QUrl/QSizeF in a javascript array. The values are wrapped inside
a QV4::Variant. This is part of a series sliming down the memory
usage of properties.
Change-Id: I62338fe7fe101496340a8d89f33030d0df5121b7
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmlvmemetaobject_p.h')
-rw-r--r-- | src/qml/qml/qqmlvmemetaobject_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlvmemetaobject_p.h b/src/qml/qml/qqmlvmemetaobject_p.h index c4ca128e87..445b54e61c 100644 --- a/src/qml/qml/qqmlvmemetaobject_p.h +++ b/src/qml/qml/qqmlvmemetaobject_p.h @@ -209,12 +209,16 @@ public: double readPropertyAsDouble(int id); QString readPropertyAsString(int id); QSizeF readPropertyAsSizeF(int id); + QPointF readPropertyAsPointF(int id); + QUrl readPropertyAsUrl(int id); void writeProperty(int id, int v); void writeProperty(int id, bool v); void writeProperty(int id, double v); void writeProperty(int id, const QString& v); + void writeProperty(int id, const QPointF& v); void writeProperty(int id, const QSizeF& v); + void writeProperty(int id, const QUrl& v); void ensureQObjectWrapper(); |