aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmllocale_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2014-11-07 02:06:42 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2014-11-10 17:15:22 +0100
commitfcf0203aafe6db09751835ce54fc32f51fc77d5a (patch)
treef5354c56af10c320b40fff9da4bba500ea8a1653 /src/qml/qml/qqmllocale_p.h
parent4838cc89f000a2f1db4da6401fc79a75a7b86ad7 (diff)
Move data of more Qml related objects into Heap namespace.
Change-Id: Ifb3a7093351474d6feb2f64498b531c36fdf669b Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmllocale_p.h')
-rw-r--r--src/qml/qml/qqmllocale_p.h29
1 files changed, 20 insertions, 9 deletions
diff --git a/src/qml/qml/qqmllocale_p.h b/src/qml/qml/qqmllocale_p.h
index 96c0712378..34224b44ff 100644
--- a/src/qml/qml/qqmllocale_p.h
+++ b/src/qml/qml/qqmllocale_p.h
@@ -121,17 +121,20 @@ private:
static QV4::ReturnedValue method_localeCompare(QV4::CallContext *ctx);
};
+namespace QV4 {
+
+namespace Heap {
+
+struct QQmlLocaleData : Object {
+ inline QQmlLocaleData(ExecutionEngine *engine);
+ QLocale locale;
+};
+
+}
+
struct QQmlLocaleData : public QV4::Object
{
- struct Data : QV4::Heap::Object {
- Data(QV4::ExecutionEngine *engine)
- : QV4::Heap::Object(engine)
- {
- setVTable(staticVTable());
- }
- QLocale locale;
- };
- V4_OBJECT(Object)
+ V4_OBJECT2(QQmlLocaleData, Object)
static QLocale *getThisLocale(QV4::CallContext *ctx) {
QV4::Object *o = ctx->d()->callData->thisObject.asObject();
@@ -178,6 +181,14 @@ private:
}
};
+Heap::QQmlLocaleData::QQmlLocaleData(ExecutionEngine *engine)
+ : Heap::Object(engine)
+{
+ setVTable(QV4::QQmlLocaleData::staticVTable());
+}
+
+}
+
QT_END_NAMESPACE
#endif