diff options
author | Pierre Rossi <pierre.rossi@digia.com> | 2014-09-30 22:25:58 +0200 |
---|---|---|
committer | Pierre Rossi <pierre.rossi@gmail.com> | 2014-10-10 15:57:44 +0200 |
commit | 9e6a94e5e1882e012f0a97943f0e77f976739fc3 (patch) | |
tree | ccf1b095186a5d4d99c6e39fc6d77d17324d22ce /examples/webengine | |
parent | c2ad449616b5c863a27ddb7388d78aee6b68b893 (diff) |
Use QUrl::fromLocalFile
so that we can open local files on the command line for quick testing.
Change-Id: Ica0fd2242d90e5499c2f1550bc87362f20bf7938
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'examples/webengine')
-rw-r--r-- | examples/webengine/quicknanobrowser/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/webengine/quicknanobrowser/util.h b/examples/webengine/quicknanobrowser/util.h index bad41d6a7..85db8c25b 100644 --- a/examples/webengine/quicknanobrowser/util.h +++ b/examples/webengine/quicknanobrowser/util.h @@ -50,7 +50,7 @@ QUrl urlFromUserInput(const QString& userInput) { QFileInfo fileInfo(userInput); if (fileInfo.exists()) - return QUrl(fileInfo.absoluteFilePath()); + return QUrl::fromLocalFile(fileInfo.absoluteFilePath()); return QUrl::fromUserInput(userInput); } |