- Moved the resource URL inside the QML app

- Updated local path for all the platforms
- Fixed local path creation problem on Linux
This commit is contained in:
Xawotihs
2012-01-06 23:54:57 +00:00
parent 1f3aedcd3f
commit d9625ed034
7 changed files with 46 additions and 16 deletions
+2 -3
View File
@@ -629,14 +629,13 @@ int main(int argc, char* argv[])
QScopedPointer<QApplication> app(createApplication(argc, argv));
app->setApplicationName(g_launcher->GetName());
FileDownloader fileDownloader(QUrl("http://wagic.googlecode.com/files/core_017.zip"),
QDir::toNativeSeparators(QDir::homePath()) + "/.wagic/core_017.zip", 0);
FileDownloader fileDownloader(USERDIR);
QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
g_glwidget = viewer.data();
viewer->setMainQmlFile(QLatin1String("qml/QmlWagic/main.qml"));
viewer->rootContext()->setContextProperty("fileDownloader", &fileDownloader);
viewer->setMainQmlFile(QLatin1String("qml/QmlWagic/main.qml"));
viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
QGLWidget *glWidget = new QGLWidget;