summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-02-16 21:24:07 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-02-16 21:29:43 (GMT)
commitfcb42e9da411695faea723e9196be6549d46bbdb (patch)
tree434e1f4d24e968e8bf022bff31d73064ad9cd4f6
parent7ff185d25de2a941e78cba72e4ec53913251cfbe (diff)
downloadQt-fcb42e9da411695faea723e9196be6549d46bbdb.zip
Qt-fcb42e9da411695faea723e9196be6549d46bbdb.tar.gz
Qt-fcb42e9da411695faea723e9196be6549d46bbdb.tar.bz2
Expose LayoutItem documentation
Also made it slightly more verbose.
-rw-r--r--doc/src/declarative/elements.qdoc1
-rw-r--r--src/declarative/graphicsitems/qmlgraphicslayoutitem.cpp7
2 files changed, 8 insertions, 0 deletions
diff --git a/doc/src/declarative/elements.qdoc b/doc/src/declarative/elements.qdoc
index cfbabf2..1d9d166 100644
--- a/doc/src/declarative/elements.qdoc
+++ b/doc/src/declarative/elements.qdoc
@@ -143,6 +143,7 @@ The following table lists the QML elements provided by the Qt Declarative module
\o \l Repeater
\o \l SystemPalette
\o \l GraphicsObjectContainer
+\o \l LayoutItem
\endlist
\header
diff --git a/src/declarative/graphicsitems/qmlgraphicslayoutitem.cpp b/src/declarative/graphicsitems/qmlgraphicslayoutitem.cpp
index 98361dc..856a37f 100644
--- a/src/declarative/graphicsitems/qmlgraphicslayoutitem.cpp
+++ b/src/declarative/graphicsitems/qmlgraphicslayoutitem.cpp
@@ -50,6 +50,13 @@ QT_BEGIN_NAMESPACE
/*!
\qmlclass LayoutItem QmlGraphicsLayoutItem
\brief The LayoutItem element allows you to place your Fluid UI elements inside a classical Qt layout.
+
+ LayoutItem is a variant of Item with a couple of additional properties. These properties provide the size hints
+ needed for items to work in conjunction with Qt Layouts. The Qt Layout will resize the LayoutItem as appropriate,
+ taking its size hints into account, and you can propagate this to the other elements in your UI via anchors and bindings.
+
+ This is a QGraphicsLayoutItem subclass, and the properties merely expose the QGraphicsLayoutItem functionality to QML.
+ See the QGraphicsLayoutItem documentation for further details.
*/
/*!