summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/kdedcop/app.cpp
blob: e295253a86a2ec91bc432a47c8432bd18161f92b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
%{CPP_TEMPLATE}

#include "%{APPNAMELC}.h"

#include <qlabel.h>

#include <kmainwindow.h>
#include <klocale.h>

%{APPNAME}::%{APPNAME}()
    : KMainWindow( 0, "%{APPNAME}" )
{
    m_mainClass = new MainClass();
}

%{APPNAME}::~%{APPNAME}()
{
    if (m_mainClass) delete m_mainClass;
}

#include "%{APPNAMELC}.moc"