diff options
author | Frank Meerkoetter <frank.meerkoetter@basyskom.com> | 2015-07-16 22:34:42 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-08-18 20:25:34 +0000 |
commit | 0720dea139e735b3438968f42c9abf7b198cd69b (patch) | |
tree | b65cc3d69223b9eedff9ca02eb0a92ceb2cf9a05 /src/qml/qml/qqmlvmemetaobject_p.h | |
parent | 0cbab3b17fb70208476b910d7d82ae653a9a1050 (diff) |
Port QDate/QDateTime/QRectF away from QQmlVmeVariant
Store QDate/QDateTime/QRectF 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: I1b5c4e24c1e46d19c5c861941655efb7a972a6a5
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 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlvmemetaobject_p.h b/src/qml/qml/qqmlvmemetaobject_p.h index 445b54e61c..96b606203a 100644 --- a/src/qml/qml/qqmlvmemetaobject_p.h +++ b/src/qml/qml/qqmlvmemetaobject_p.h @@ -211,6 +211,9 @@ public: QSizeF readPropertyAsSizeF(int id); QPointF readPropertyAsPointF(int id); QUrl readPropertyAsUrl(int id); + QDate readPropertyAsDate(int id); + QDateTime readPropertyAsDateTime(int id); + QRectF readPropertyAsRectF(int id); void writeProperty(int id, int v); void writeProperty(int id, bool v); @@ -219,6 +222,9 @@ public: void writeProperty(int id, const QPointF& v); void writeProperty(int id, const QSizeF& v); void writeProperty(int id, const QUrl& v); + void writeProperty(int id, const QDate& v); + void writeProperty(int id, const QDateTime& v); + void writeProperty(int id, const QRectF& v); void ensureQObjectWrapper(); |