diff options
author | David Boddie <david.boddie@nokia.com> | 2011-02-22 15:49:40 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2011-02-22 15:49:40 (GMT) |
commit | c38c1354377ad7146ce4498e2821ab62643d3a79 (patch) | |
tree | d541ffb1a39fb443314255278a4bbb951ad6517b /src/declarative | |
parent | 6c77950e991d8152a9f1221e57c68c6d48dbfc7f (diff) | |
download | Qt-c38c1354377ad7146ce4498e2821ab62643d3a79.zip Qt-c38c1354377ad7146ce4498e2821ab62643d3a79.tar.gz Qt-c38c1354377ad7146ce4498e2821ab62643d3a79.tar.bz2 |
Doc: Fixed a code snippet.
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativeitem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeitem.cpp b/src/declarative/graphicsitems/qdeclarativeitem.cpp index 35de629..468b5cb 100644 --- a/src/declarative/graphicsitems/qdeclarativeitem.cpp +++ b/src/declarative/graphicsitems/qdeclarativeitem.cpp @@ -3268,7 +3268,7 @@ qreal QDeclarativeItem::implicitHeight() const Setting the implicit size is useful for defining components that have a preferred size based on their content, for example: - \code + \qml // Label.qml import QtQuick 1.1 @@ -3285,7 +3285,7 @@ qreal QDeclarativeItem::implicitHeight() const anchors.verticalCenter: parent.verticalCenter } } - \endcode + \endqml \bold Note: using implicitWidth of Text or TextEdit and setting the width explicitly incurs a performance penalty as the text must be laid out twice. |