From 080af75aca6511f4a9408b38cd092283211c9422 Mon Sep 17 00:00:00 2001 From: Yann Bodson Date: Mon, 14 Nov 2011 13:14:02 +1000 Subject: [PATCH] Text.onLineLaidOut doc does not appear Task-number: QTBUG-22706 Change-Id: I2b8b7d4012e48ff4226f060a5ce38d2acdab0deb Reviewed-by: Yann Bodson Reviewed-by: Martin Jones --- src/declarative/items/qquicktext.cpp | 54 +++++++++++++++++----------------- 1 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/declarative/items/qquicktext.cpp b/src/declarative/items/qquicktext.cpp index 26f9543..4a33086 100644 --- a/src/declarative/items/qquicktext.cpp +++ b/src/declarative/items/qquicktext.cpp @@ -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. -- 1.7.2.5