2016-06-21 16:15:25 +02:00
|
|
|
%{Cpp:LicenseTemplate}\
|
|
|
|
|
@if "%{RequireGUI}" == "true"
|
|
|
|
|
%{JS: QtSupport.qtIncludes([ 'QtGui/QApplication' ],
|
|
|
|
|
[ 'QtWidgets/QApplication' ]) }\
|
2014-10-07 12:30:54 +02:00
|
|
|
@else
|
2016-06-21 16:15:25 +02:00
|
|
|
%{JS: QtSupport.qtIncludes([ 'QtCore/QCoreApplication' ],
|
|
|
|
|
[ 'QtCore/QCoreApplication' ]) }\
|
2014-10-07 12:30:54 +02:00
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
// add necessary includes here
|
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
|
{
|
2016-06-21 16:15:25 +02:00
|
|
|
@if "%{RequireGUI}" == "true"
|
2014-10-07 12:30:54 +02:00
|
|
|
QApplication a(argc, argv);
|
|
|
|
|
@else
|
|
|
|
|
QCoreApplication a(argc, argv);
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
return a.exec();
|
|
|
|
|
}
|