diff options
Diffstat (limited to 'share/qtcreator/templates/wizards/autotest/main.cpp')
-rw-r--r-- | share/qtcreator/templates/wizards/autotest/main.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/share/qtcreator/templates/wizards/autotest/main.cpp b/share/qtcreator/templates/wizards/autotest/main.cpp new file mode 100644 index 0000000000..3ff500decd --- /dev/null +++ b/share/qtcreator/templates/wizards/autotest/main.cpp @@ -0,0 +1,18 @@ +@if "%RequireGUI%" == "true" +#include <QApplication> +@else +#include <QCoreApplication> +@endif + +// add necessary includes here + +int main(int argc, char *argv[]) +{ +@if "%RequireGUI%" == "true" + QApplication a(argc, argv); +@else + QCoreApplication a(argc, argv); +@endif + + return a.exec(); +} |