diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2012-02-14 10:18:38 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-14 02:28:13 +0100 |
commit | ccc05e55f430dcea23b2f3035835c25959502ee9 (patch) | |
tree | 11306bbc8093d1d75b9f49a82d690d37c308c008 /src | |
parent | e4eb6b299533606998f6a9c409ce7225cef53edd (diff) |
Better document with examples how relative paths are resolved.
Change-Id: Ia52956889216d11d7bb10307f09b582b55d0b4cd
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/quick/items/qquicktext.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/quick/items/qquicktext.cpp b/src/quick/items/qquicktext.cpp index f96c9b15fc..31f557f610 100644 --- a/src/quick/items/qquicktext.cpp +++ b/src/quick/items/qquicktext.cpp @@ -1760,6 +1760,20 @@ void QQuickText::setElideMode(QQuickText::TextElideMode mode) This property specifies a base URL which is used to resolve relative URLs within the text. + Urls are resolved to be within the same directory as the target of the base + URL meaning any portion of the path after the last '/' will be ignored. + + \table + \header \o Base URL \o Relative URL \o Resolved URL + \row \o http://qt-project.org/ \o images/logo.png \o http://qt-project.org/images/logo.png + \row \o http://qt-project.org/index.html \o images/logo.png \o http://qt-project.org/images/logo.png + \row \o http://qt-project.org/content \o images/logo.png \o http://qt-project.org/content/images/logo.png + \row \o http://qt-project.org/content/ \o images/logo.png \o http://qt-project.org/content/images/logo.png + \row \o http://qt-project.org/content/index.html \o images/logo.png \o http://qt-project.org/content/images/logo.png + \row \o http://qt-project.org/content/index.html \o ../images/logo.png \o http://qt-project.org/images/logo.png + \row \o http://qt-project.org/content/index.html \o /images/logo.png \o http://qt-project.org/images/logo.png + \endtable + By default is the url of the Text element. */ |