summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/qmakeapp/main.cpp
blob: 8938adc55348e1ca48a04d8c903e85df6dbf991f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
%{CPP_TEMPLATE}

#include <tqapplication.h>
#include "%{APPNAMELC}.h"

int main( int argc, char ** argv ) {
    TQApplication a( argc, argv );
    %{APPNAME} * mw = new %{APPNAME}();
    mw->setCaption( "%{APPNAME}" );
    mw->show();
    a.connect( &a, TQT_SIGNAL(lastWindowClosed()), &a, TQT_SLOT(quit()) );
    return a.exec();
}