From ccc05e55f430dcea23b2f3035835c25959502ee9 Mon Sep 17 00:00:00 2001 From: Andrew den Exter Date: Tue, 14 Feb 2012 10:18:38 +1000 Subject: Better document with examples how relative paths are resolved. Change-Id: Ia52956889216d11d7bb10307f09b582b55d0b4cd Reviewed-by: Martin Jones --- src/quick/items/qquicktext.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/quick') 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. */ -- cgit v1.2.3