summaryrefslogtreecommitdiffstats
path: root/src/corelib/io
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/io')
-rw-r--r--src/corelib/io/qurl.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/corelib/io/qurl.cpp b/src/corelib/io/qurl.cpp
index 0e7ef68ecb..1e74b2ad9f 100644
--- a/src/corelib/io/qurl.cpp
+++ b/src/corelib/io/qurl.cpp
@@ -1807,9 +1807,15 @@ inline void QUrlPrivate::validate() const
help avoid missing QUrl::resolved() calls, and other misuses of
QString to QUrl conversions.
- \oldcode
+ For example, if you have code like
+
+ \code
url = filename; // probably not what you want
- \newcode
+ \endcode
+
+ you can rewrite it as
+
+ \code
url = QUrl::fromLocalFile(filename);
url = baseurl.resolved(QUrl(filename));
\endcode