aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tools/qtquickappblaster
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@nokia.com>2011-02-06 16:23:02 +0100
committerAlessandro Portale <alessandro.portale@nokia.com>2011-02-06 16:23:02 +0100
commit38edea5019de9231ba8119bd0c7c3780a1856da0 (patch)
treec0904e6e69548c9ffeecde1331b866428f4d5607 /tests/tools/qtquickappblaster
parent7870769a30ebe4b102d850d0a5b41b6f484da84f (diff)
Renaming: QmlStandaloneApp* -> QtQuickApp*
Diffstat (limited to 'tests/tools/qtquickappblaster')
-rw-r--r--tests/tools/qtquickappblaster/main.cpp20
-rw-r--r--tests/tools/qtquickappblaster/qtquickappblaster.pro8
2 files changed, 15 insertions, 13 deletions
diff --git a/tests/tools/qtquickappblaster/main.cpp b/tests/tools/qtquickappblaster/main.cpp
index 9ac3896d53..c83de558db 100644
--- a/tests/tools/qtquickappblaster/main.cpp
+++ b/tests/tools/qtquickappblaster/main.cpp
@@ -1,4 +1,4 @@
-#include "qmlstandaloneapp.h"
+#include "qtquickapp.h"
#include <QtCore>
using namespace Qt4ProjectManager::Internal;
@@ -27,14 +27,14 @@ bool processXmlFile(const QString &xmlFile)
switch (token) {
case QXmlStreamReader::StartElement:
if (reader.name() == tag_app) {
- QmlStandaloneApp qmlApp;
+ QtQuickApp app;
QFileInfo projectPath;
if (!reader.attributes().hasAttribute(attrib_projectPath)) {
qDebug() << "Project without path found";
continue;
}
projectPath = qtDir + reader.attributes().value(attrib_projectPath).toString();
- qmlApp.setProjectPath(projectPath.absoluteFilePath());
+ app.setProjectPath(projectPath.absoluteFilePath());
if (reader.attributes().hasAttribute(attrib_mainQmlFile)) {
const QFileInfo qmlFileOrigin(
qtDir + reader.attributes().value(attrib_mainQmlFile).toString());
@@ -63,25 +63,25 @@ bool processXmlFile(const QString &xmlFile)
#else // Q_OS_WIN
// Implement me!
#endif // Q_OS_WIN
- qmlApp.setMainQmlFile(qmlTargetPath.absoluteFilePath()
+ app.setMainQmlFile(qmlTargetPath.absoluteFilePath()
+ QLatin1Char('/') + qmlFileOrigin.fileName());
}
- qmlApp.setProjectName(reader.attributes().hasAttribute(attrib_projectName)
+ app.setProjectName(reader.attributes().hasAttribute(attrib_projectName)
? reader.attributes().value(attrib_projectName).toString()
- : QFileInfo(qmlApp.mainQmlFile()).baseName());
+ : QFileInfo(app.mainQmlFile()).baseName());
if (reader.attributes().hasAttribute(attrib_screenOrientation)) {
const QStringRef orientation = reader.attributes().value(attrib_screenOrientation);
- qmlApp.setOrientation(orientation == value_screenOrientationLockLandscape ?
+ app.setOrientation(orientation == value_screenOrientationLockLandscape ?
AbstractMobileApp::ScreenOrientationLockLandscape
: orientation == value_screenOrientationLockPortrait ?
AbstractMobileApp::ScreenOrientationLockPortrait
: AbstractMobileApp::ScreenOrientationAuto);
}
if (reader.attributes().hasAttribute(attrib_networkAccess))
- qmlApp.setNetworkEnabled(
+ app.setNetworkEnabled(
reader.attributes().value(attrib_networkAccess).toString() == QLatin1String("true"));
- if (!qmlApp.generateFiles(0))
- qDebug() << "Unable to generate the files for" << qmlApp.projectName();
+ if (!app.generateFiles(0))
+ qDebug() << "Unable to generate the files for" << app.projectName();
}
break;
default:
diff --git a/tests/tools/qtquickappblaster/qtquickappblaster.pro b/tests/tools/qtquickappblaster/qtquickappblaster.pro
index 1d2628fa8f..61057472b7 100644
--- a/tests/tools/qtquickappblaster/qtquickappblaster.pro
+++ b/tests/tools/qtquickappblaster/qtquickappblaster.pro
@@ -4,13 +4,15 @@ DEFINES += \
CREATORLESSTEST
APPSOURCEDIR = $$CREATORSOURCEDIR/src/plugins/qt4projectmanager/wizards
HEADERS += \
- $$APPSOURCEDIR/qmlstandaloneapp.h \
+ $$APPSOURCEDIR/qtquickapp.h \
+ $$APPSOURCEDIR/html5app.h \
$$APPSOURCEDIR/abstractmobileapp.h
SOURCES += \
- $$APPSOURCEDIR/qmlstandaloneapp.cpp \
+ $$APPSOURCEDIR/qtquickapp.cpp \
+ $$APPSOURCEDIR/html5app.cpp \
$$APPSOURCEDIR/abstractmobileapp.cpp \
main.cpp \
- $$CREATORSOURCEDIR/tests/manual/qmlstandalone/helpers.cpp
+ $$CREATORSOURCEDIR/tests/manual/appwizards/helpers.cpp
INCLUDEPATH += $$APPSOURCEDIR
OTHER_FILES = qtquickapps.xml
RESOURCES += \