diff --git a/share/qtcreator/templates/qt4project/main.cpp b/share/qtcreator/templates/qt4project/main.cpp index 8c747ef3705..461e6105d3c 100644 --- a/share/qtcreator/templates/qt4project/main.cpp +++ b/share/qtcreator/templates/qt4project/main.cpp @@ -5,6 +5,6 @@ int main(int argc, char *argv[]) { QApplication a(argc, argv); %CLASS% w; - %SHOWMETHOD% +%SHOWMETHOD% return a.exec(); } diff --git a/src/plugins/qt4projectmanager/wizards/guiappwizard.cpp b/src/plugins/qt4projectmanager/wizards/guiappwizard.cpp index 960339076b4..1ebfc8e17c3 100644 --- a/src/plugins/qt4projectmanager/wizards/guiappwizard.cpp +++ b/src/plugins/qt4projectmanager/wizards/guiappwizard.cpp @@ -46,7 +46,7 @@ #include static const char *mainSourceFileC = "main"; -static const char *mainSourceShowC = "w.show();\n"; +static const char *mainSourceShowC = " w.show();\n"; static const char *mainSourceMobilityShowC = "#if defined(Q_WS_S60)\n" " w.showMaximized();\n" "#else\n"