aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2/qquicktextedit/data/embeddedImagesLocalRelative.qml
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2012-01-17 10:42:26 +1000
committerQt by Nokia <qt-info@nokia.com>2012-01-19 11:11:02 +0100
commitde0a5f28bc565c971989e68a19c8621a2309ed91 (patch)
treec1508783394682a2aab90fba81d7871a9c9a6036 /tests/auto/qtquick2/qquicktextedit/data/embeddedImagesLocalRelative.qml
parentbab2eaf3da299c471dd898c89cf356984b077412 (diff)
Add a baseUrl property to Text and TextEdit.
Specifies the base URL which embedded links in rich text are resolved against. By default this is the URL of the item. Task-number: QTBUG-23655 Change-Id: Ib51b8503a18d9ac4e1801c77b77b3595d8f4912a Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'tests/auto/qtquick2/qquicktextedit/data/embeddedImagesLocalRelative.qml')
-rw-r--r--tests/auto/qtquick2/qquicktextedit/data/embeddedImagesLocalRelative.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qtquick2/qquicktextedit/data/embeddedImagesLocalRelative.qml b/tests/auto/qtquick2/qquicktextedit/data/embeddedImagesLocalRelative.qml
new file mode 100644
index 0000000000..200ded196d
--- /dev/null
+++ b/tests/auto/qtquick2/qquicktextedit/data/embeddedImagesLocalRelative.qml
@@ -0,0 +1,7 @@
+import QtQuick 2.0
+
+TextEdit {
+ textFormat: TextEdit.RichText
+ text: "<img src='exists.png'>"
+ baseUrl: "http/"
+}