diff options
author | Chris Adams <christopher.adams@nokia.com> | 2012-05-23 18:05:10 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-21 09:58:56 +0200 |
commit | 03342a435a88656d64d1445991a4421d244fcb45 (patch) | |
tree | c70121da638aed1d8ef1240cae8acf5fddf35dff /src/quick/util | |
parent | b89c6459d760e68c629c0d318d2afd494a2a415a (diff) |
Put basic language types into QtQml import
This import is automatically registered by the engine.
It provides basic language types (Component and QtObject).
Note that the QtQuick import still has these types registered into it,
so this commit doesn't break existing code.
Change-Id: I8ff190f057fc92969020cf8e896da1649ca3069b
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'src/quick/util')
-rw-r--r-- | src/quick/util/qquickvaluetypes.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/quick/util/qquickvaluetypes.cpp b/src/quick/util/qquickvaluetypes.cpp index 179f840acd..e3da2658b4 100644 --- a/src/quick/util/qquickvaluetypes.cpp +++ b/src/quick/util/qquickvaluetypes.cpp @@ -49,14 +49,11 @@ QT_BEGIN_NAMESPACE namespace QQuickValueTypes { - -void registerValueTypes() -{ - QQmlValueTypeFactory::registerValueTypes(); - - qmlRegisterValueTypeEnums<QQuickFontValueType>("QtQuick", 2, 0, "Font"); -} - + void registerValueTypes() + { + QQmlValueTypeFactory::registerValueTypes("QtQuick", 2, 0); + qmlRegisterValueTypeEnums<QQuickFontValueType>("QtQuick", 2, 0, "Font"); + } } QQuickColorValueType::QQuickColorValueType(QObject *parent) |