diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2010-02-16 21:24:07 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2010-02-16 21:29:43 (GMT) |
commit | fcb42e9da411695faea723e9196be6549d46bbdb (patch) | |
tree | 434e1f4d24e968e8bf022bff31d73064ad9cd4f6 | |
parent | 7ff185d25de2a941e78cba72e4ec53913251cfbe (diff) | |
download | Qt-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.qdoc | 1 | ||||
-rw-r--r-- | src/declarative/graphicsitems/qmlgraphicslayoutitem.cpp | 7 |
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. */ /*! |