From 9e6a94e5e1882e012f0a97943f0e77f976739fc3 Mon Sep 17 00:00:00 2001 From: Pierre Rossi Date: Tue, 30 Sep 2014 22:25:58 +0200 Subject: Use QUrl::fromLocalFile so that we can open local files on the command line for quick testing. Change-Id: Ica0fd2242d90e5499c2f1550bc87362f20bf7938 Reviewed-by: Zeno Albisser Reviewed-by: Andras Becsi --- tests/quicktestbrowser/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/quicktestbrowser') diff --git a/tests/quicktestbrowser/util.h b/tests/quicktestbrowser/util.h index bad41d6a7..85db8c25b 100644 --- a/tests/quicktestbrowser/util.h +++ b/tests/quicktestbrowser/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); } -- cgit v1.2.3