Text.onLineLaidOut doc does not appear
authorYann Bodson <yann.bodson@nokia.com>
Mon, 14 Nov 2011 03:14:02 +0000 (13:14 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 14 Nov 2011 04:01:20 +0000 (05:01 +0100)
Task-number: QTBUG-22706

Change-Id: I2b8b7d4012e48ff4226f060a5ce38d2acdab0deb
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/declarative/items/qquicktext.cpp

index 26f9543..4a33086 100644 (file)
@@ -444,33 +444,6 @@ void QQuickText::doLayout()
     d->updateSize();
 }
 
-/*!
-    \qmlsignal QtQuick2::Text::onLineLaidOut(line)
-
-    This handler is called for every line during the layout process.
-    This gives the opportunity to position and resize a line as it is being laid out.
-    It can for example be used to create columns or lay out text around objects.
-
-    The properties of a line are:
-    \list
-    \o number (read-only)
-    \o x
-    \o y
-    \o width
-    \o height
-    \endlist
-
-    For example, this will move the first 5 lines of a text element by 100 pixels to the right:
-    \code
-    onLineLaidOut: {
-        if (line.number < 5) {
-            line.x = line.x + 100
-            line.width = line.width - 100
-        }
-    }
-    \endcode
-*/
-
 bool QQuickTextPrivate::isLineLaidOutConnected()
 {
     static int idx = this->signalIndex("lineLaidOut(QQuickTextLine*)");
@@ -954,6 +927,33 @@ QQuickText::~QQuickText()
 */
 
 /*!
+    \qmlsignal QtQuick2::Text::onLineLaidOut(line)
+
+    This handler is called for every line during the layout process.
+    This gives the opportunity to position and resize a line as it is being laid out.
+    It can for example be used to create columns or lay out text around objects.
+
+    The properties of a line are:
+    \list
+    \o number (read-only)
+    \o x
+    \o y
+    \o width
+    \o height
+    \endlist
+
+    For example, this will move the first 5 lines of a text element by 100 pixels to the right:
+    \code
+    onLineLaidOut: {
+        if (line.number < 5) {
+            line.x = line.x + 100
+            line.width = line.width - 100
+        }
+    }
+    \endcode
+*/
+
+/*!
     \qmlsignal QtQuick2::Text::onLinkActivated(string link)
 
     This handler is called when the user clicks on a link embedded in the text.