diff options
author | Yoann Lopes <yoann.lopes@nokia.com> | 2010-11-23 15:07:32 +0100 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@nokia.com> | 2010-11-23 15:16:46 +0100 |
commit | 0b3edd6acca34e04412074fbf55966b6858f1d6d (patch) | |
tree | 61c48c93d74cd9e666325142cb5707813a3e8e60 | |
parent | 9a22b0987d916b7b12d0cf444bcae8f213c43cfa (diff) |
Removes registration of OrientationObject to qml. (should be in qmlscene?)
-rw-r--r-- | src/qmlscene_global.cpp | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/qmlscene_global.cpp b/src/qmlscene_global.cpp index f8ddf65..75ba95e 100644 --- a/src/qmlscene_global.cpp +++ b/src/qmlscene_global.cpp @@ -78,23 +78,6 @@ #include "utilities.h" -class OrientationObject : public QObject -{ - Q_OBJECT - Q_ENUMS(Orientation) - Q_PROPERTY(Orientation orientation READ orientation CONSTANT) -public: - enum Orientation { - UnknownOrientation, - Portrait, - Landscape, - PortraitInverted, - LandscapeInverted - }; - - Orientation orientation() const { return Portrait; } -}; - static QDeclarativePrivate::AutoParentResult QxItem_autoParent(QObject *obj, QObject *parent) { QxItem* gobj = qobject_cast<QxItem*>(obj); @@ -129,7 +112,6 @@ void qt_scenegraph_register_types() minorVersion = 7; } - qmlRegisterUncreatableType<OrientationObject>(name, majorVersion, minorVersion,"Orientation",""); QDeclarativePrivate::RegisterAutoParent autoparent = { 0, &QxItem_autoParent }; QDeclarativePrivate::qmlregister(QDeclarativePrivate::AutoParentRegistration, &autoparent); @@ -199,7 +181,7 @@ void qt_scenegraph_register_types() void qt_scenegraph_configure_engine(QDeclarativeEngine *engine) { - engine->rootContext()->setContextProperty("runtime", new OrientationObject); + Q_UNUSED(engine); } #include "qmlscene_global.moc" |