Task-number: QTBUG-22706
Change-Id: I2b8b7d4012e48ff4226f060a5ce38d2acdab0deb
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
-/*!
- \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*)");
bool QQuickTextPrivate::isLineLaidOutConnected()
{
static int idx = this->signalIndex("lineLaidOut(QQuickTextLine*)");
+ \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.
\qmlsignal QtQuick2::Text::onLinkActivated(string link)
This handler is called when the user clicks on a link embedded in the text.