Document the window property for qml and register the revision
authorLaszlo Agocs <laszlo.agocs@digia.com>
Fri, 21 Mar 2014 12:37:57 +0000 (13:37 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 24 Mar 2014 19:25:53 +0000 (20:25 +0100)
Change-Id: I52d54d022ccd6f727abdb1c109b7fd2336425eea
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
src/quick/items/qquickitem.cpp
src/quick/items/qquickitemsmodule.cpp

index 7020f81..f7dc211 100644 (file)
@@ -2428,6 +2428,12 @@ void QQuickItem::stackAfter(const QQuickItem *sibling)
 */
 
 /*!
+    \qmlproperty Window QtQuick::Item::window
+    \since 5.4
+    This property holds the window in which the item is rendered.
+ */
+
+/*!
   Returns the window in which this item is rendered.
 
   The item does not have a window until it has been assigned into a scene. The
index 0aed784..7d75c76 100644 (file)
@@ -274,6 +274,8 @@ static void qt_quickitems_defineModule(const char *uri, int major, int minor)
     qmlRegisterType<QQuickText, 3>(uri, 2, 3, "Text");
     qmlRegisterType<QQuickTextEdit, 3>(uri, 2, 3, "TextEdit");
     qmlRegisterType<QQuickImage, 1>(uri, 2, 3,"Image");
+
+    qmlRegisterType<QQuickItem, 2>(uri, 2, 4, "Item");
 }
 
 static void initResources()