summaryrefslogtreecommitdiffstats
path: root/examples/multimedia/video/qmlvideo/main.cpp
diff options
context:
space:
mode:
authorChristian Strømme <christian.stromme@digia.com>2013-06-12 17:49:08 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-06-13 14:15:36 +0200
commitccc41383044f192353d035dd9b94d2b62b0e52ff (patch)
tree5b68631ceef861dd86b5bde36ad58a99d59cf099 /examples/multimedia/video/qmlvideo/main.cpp
parentfca12620b1e14a5d2daf467f2f8c6eb96714e80a (diff)
Fix for url bug in the qmlvideo examples.
In the FileBrowser paths where being prepended with file:///, since all the paths already starts with a forward slash, navigating away from the initial directory was therefore not possible. To make the examples work on Android, QT += multimedia was added. Change-Id: Iff96729d476c4292999b022bdd6d5770b6b011e7 Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com> Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Diffstat (limited to 'examples/multimedia/video/qmlvideo/main.cpp')
-rw-r--r--examples/multimedia/video/qmlvideo/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/multimedia/video/qmlvideo/main.cpp b/examples/multimedia/video/qmlvideo/main.cpp
index e44476a15..81c38d240 100644
--- a/examples/multimedia/video/qmlvideo/main.cpp
+++ b/examples/multimedia/video/qmlvideo/main.cpp
@@ -132,10 +132,10 @@ int main(int argc, char *argv[])
QUrl videoPath;
const QStringList moviesLocation = QStandardPaths::standardLocations(QStandardPaths::MoviesLocation);
if (moviesLocation.isEmpty()) {
- QUrl appPath(QString("file:///%1").arg(app.applicationDirPath()));
+ QUrl appPath(QString("file://%1").arg(app.applicationDirPath()));
videoPath = appPath.resolved(QUrl("./"));
} else
- videoPath = QString("file:///%1").arg(moviesLocation.first());
+ videoPath = QString("file://%1").arg(moviesLocation.first());
viewer.rootContext()->setContextProperty("videoPath", videoPath);
QMetaObject::invokeMethod(rootObject, "init");