Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Andrew den Exter
authored and
Qt by Nokia
committed
Jan 19, 2012
1 parent
bab2eaf
commit de0a5f2
Showing
12 changed files
with
190 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
tests/auto/qtquick2/qquicktext/data/embeddedImagesLocalRelative.qml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import QtQuick 2.0 | ||
|
||
Text { | ||
textFormat: Text.RichText | ||
text: "<img src='exists.png'>" | ||
baseUrl: "http/" | ||
} |
7 changes: 7 additions & 0 deletions
7
tests/auto/qtquick2/qquicktext/data/embeddedImagesRemoteRelative.qml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import QtQuick 2.0 | ||
|
||
Text { | ||
textFormat: Text.RichText | ||
text: "<img src='exists.png'>" | ||
baseUrl: "http://127.0.0.1:14453/text.html" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
tests/auto/qtquick2/qquicktextedit/data/embeddedImagesLocalRelative.qml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import QtQuick 2.0 | ||
|
||
TextEdit { | ||
textFormat: TextEdit.RichText | ||
text: "<img src='exists.png'>" | ||
baseUrl: "http/" | ||
} |
7 changes: 7 additions & 0 deletions
7
tests/auto/qtquick2/qquicktextedit/data/embeddedImagesRemoteRelative.qml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import QtQuick 2.0 | ||
|
||
TextEdit { | ||
textFormat: TextEdit.RichText | ||
text: "<img src='exists.png'>" | ||
baseUrl: "http://127.0.0.1:42332/text.html" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters