Files
qt-creator/shared/autotest/main.cpp

19 lines
296 B
C++
Raw Normal View History

2014-10-07 12:30:54 +02:00
@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();
}