Commit 6b7501a1 authored by Alessandro Portale's avatar Alessandro Portale
Browse files

Appwizard test: Fix compilation and warnings



Change-Id: I6ec16d21c2c8554637361a48deddc71ebb52e7ce
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 6481deb8
...@@ -4,7 +4,7 @@ include ($$CREATORSOURCEDIR/qtcreator.pri) ...@@ -4,7 +4,7 @@ include ($$CREATORSOURCEDIR/qtcreator.pri)
DEFINES += \ DEFINES += \
CREATORLESSTEST CREATORLESSTEST
APPSOURCEDIR = $$CREATORSOURCEDIR/src/plugins/qt4projectmanager/wizards APPSOURCEDIR = $$CREATORSOURCEDIR/src/plugins/qt4projectmanager/wizards
LIBS *= -L$$IDE_LIBRARY_PATH -lUtils -lBotan LIBS *= -L$$IDE_LIBRARY_PATH -lUtils
HEADERS += \ HEADERS += \
$$APPSOURCEDIR/qtquickapp.h \ $$APPSOURCEDIR/qtquickapp.h \
$$APPSOURCEDIR/html5app.h \ $$APPSOURCEDIR/html5app.h \
......
...@@ -37,6 +37,9 @@ using namespace Qt4ProjectManager::Internal; ...@@ -37,6 +37,9 @@ using namespace Qt4ProjectManager::Internal;
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
Q_UNUSED(argc)
Q_UNUSED(argv)
QString errorMessage; QString errorMessage;
const QString projectPath = QLatin1String("testprojects"); const QString projectPath = QLatin1String("testprojects");
...@@ -52,7 +55,7 @@ int main(int argc, char *argv[]) ...@@ -52,7 +55,7 @@ int main(int argc, char *argv[])
{ {
QtQuickApp sAppNew; QtQuickApp sAppNew;
sAppNew.setProjectPath(projectPath); sAppNew.setProjectPath(projectPath);
sAppNew.setComponentSet(QtQuickApp::ComponentSetQtQuick2_0); sAppNew.setComponentSet(QtQuickApp::QtQuick20Components);
sAppNew.setProjectName(QLatin1String("new_qtquick2_app")); sAppNew.setProjectName(QLatin1String("new_qtquick2_app"));
if (!sAppNew.generateFiles(&errorMessage)) if (!sAppNew.generateFiles(&errorMessage))
return 1; return 1;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment