Merge remote-tracking branch 'origin/release' into stable
Change-Id: I0361cbb4f5398bb13e675c3de04519c414daea43
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -101,7 +101,7 @@ Rectangle {
|
||||
Rectangle {
|
||||
id: wrapper
|
||||
function launch() {
|
||||
var path = "file:///" + filePath;
|
||||
var path = "file://" + filePath;
|
||||
if (folders.isFolder(index))
|
||||
down(path);
|
||||
else
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
TEMPLATE = app
|
||||
TARGET = qmlvideo
|
||||
|
||||
QT += quick
|
||||
QT += quick multimedia
|
||||
|
||||
LOCAL_SOURCES = main.cpp
|
||||
LOCAL_HEADERS = trace.h
|
||||
|
||||
@@ -116,13 +116,13 @@ int main(int argc, char *argv[])
|
||||
FileReader fileReader;
|
||||
viewer.rootContext()->setContextProperty("fileReader", &fileReader);
|
||||
|
||||
QUrl appPath(QString("file:///%1").arg(app.applicationDirPath()));
|
||||
QUrl appPath(QString("file://%1").arg(app.applicationDirPath()));
|
||||
QUrl imagePath;
|
||||
const QStringList picturesLocation = QStandardPaths::standardLocations(QStandardPaths::PicturesLocation);
|
||||
if (picturesLocation.isEmpty())
|
||||
imagePath = appPath.resolved(QUrl("images"));
|
||||
else
|
||||
imagePath = QString("file:///%1").arg(picturesLocation.first());
|
||||
imagePath = QString("file://%1").arg(picturesLocation.first());
|
||||
viewer.rootContext()->setContextProperty("imagePath", imagePath);
|
||||
|
||||
QUrl videoPath;
|
||||
@@ -130,7 +130,7 @@ int main(int argc, char *argv[])
|
||||
if (moviesLocation.isEmpty())
|
||||
videoPath = appPath.resolved(QUrl("./"));
|
||||
else
|
||||
videoPath = QString("file:///%1").arg(moviesLocation.first());
|
||||
videoPath = QString("file://%1").arg(moviesLocation.first());
|
||||
viewer.rootContext()->setContextProperty("videoPath", videoPath);
|
||||
|
||||
viewer.setTitle("qmlvideofx");
|
||||
|
||||
@@ -102,7 +102,7 @@ Rectangle {
|
||||
Rectangle {
|
||||
id: wrapper
|
||||
function launch() {
|
||||
var path = "file:///" + filePath
|
||||
var path = "file://" + filePath
|
||||
if (folders.isFolder(index))
|
||||
down(path);
|
||||
else
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
TEMPLATE = app
|
||||
TARGET = qmlvideofx
|
||||
|
||||
QT += quick
|
||||
QT += quick multimedia
|
||||
|
||||
SOURCES += filereader.cpp main.cpp
|
||||
HEADERS += filereader.h trace.h
|
||||
|
||||
Reference in New Issue
Block a user