diff options
| author | Andreas Hartmetz <[email protected]> | 2019-08-07 10:50:55 +0200 |
|---|---|---|
| committer | Andreas Hartmetz <[email protected]> | 2019-08-07 12:56:58 +0200 |
| commit | 0ea7360eaa70c2b024a37b2ff9106531440cdee7 (patch) | |
| tree | acaa14553d17227e58c656c4e0549493f5d242fd /src | |
| parent | 4f116f00fcd93decbf6fc01b61b0be7c293d3c39 (diff) | |
Fix two examples in QUrl::toLocalFile() documentation
Change-Id: Ib17844e1dd696a41815bdf58924ff40d684884a8
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/corelib/doc/snippets/code/src_corelib_io_qurl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/doc/snippets/code/src_corelib_io_qurl.cpp b/src/corelib/doc/snippets/code/src_corelib_io_qurl.cpp index 79af776ce4b..e3c3005c332 100644 --- a/src/corelib/doc/snippets/code/src_corelib_io_qurl.cpp +++ b/src/corelib/doc/snippets/code/src_corelib_io_qurl.cpp @@ -183,7 +183,7 @@ QUrl url("http://qt-project.org/support/file.html"); //! [19] //! [20] - qDebug() << QUrl("file:file.txt").toLocalFile(); // "file:file.txt" - qDebug() << QUrl("file:/home/user/file.txt").toLocalFile(); // "file:///home/user/file.txt" + qDebug() << QUrl("file:file.txt").toLocalFile(); // "file.txt" + qDebug() << QUrl("file:/home/user/file.txt").toLocalFile(); // "/home/user/file.txt" qDebug() << QUrl("file.txt").toLocalFile(); // ""; wasn't a local file as it had no scheme //! [20] |
