summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qtextbrowser.cpp
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2011-09-28 07:08:55 (GMT)
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2011-09-28 07:54:14 (GMT)
commit5f161591b6ae25524b129bf4a41d6438f0a4d402 (patch)
tree9bd9c2eeff1a93ee5016c41fc7cf27915aa6d102 /src/gui/widgets/qtextbrowser.cpp
parent7c626d2a9152a20f965d877c2de92e04bdfe3571 (diff)
downloadQt-5f161591b6ae25524b129bf4a41d6438f0a4d402.zip
Qt-5f161591b6ae25524b129bf4a41d6438f0a4d402.tar.gz
Qt-5f161591b6ae25524b129bf4a41d6438f0a4d402.tar.bz2
Fix QTextBrowser autotest to use "file" scheme in URLs.
A security fix to QUrl that causes it to no longer interpret URLs without scheme as local files broke QTextBrowser test case. Added the necessary "file" schemes to URLs used in the test. Also added a mention about necessity of using "file" scheme to QTextBrowser documentation. Task-number: QT-5286 Reviewed-by: Sami Merila
Diffstat (limited to 'src/gui/widgets/qtextbrowser.cpp')
-rw-r--r--src/gui/widgets/qtextbrowser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/qtextbrowser.cpp b/src/gui/widgets/qtextbrowser.cpp
index cd8fa11..e786c5c 100644
--- a/src/gui/widgets/qtextbrowser.cpp
+++ b/src/gui/widgets/qtextbrowser.cpp
@@ -619,7 +619,8 @@ void QTextBrowserPrivate::restoreHistoryEntry(const HistoryEntry entry)
If you want to load documents stored in the Qt resource system use
\c{qrc} as the scheme in the URL to load. For example, for the document
resource path \c{:/docs/index.html} use \c{qrc:/docs/index.html} as
- the URL with setSource().
+ the URL with setSource(). To access local files, use \c{file} as the
+ scheme in the URL.
\sa QTextEdit, QTextDocument
*/