summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/khello2/widget.cpp
blob: 6775ac392acb9eb0dd80441f4a06c1e38ae117de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
%{CPP_TEMPLATE}

#include <qlabel.h>

#include "%{APPNAMELC}widget.h"

%{APPNAME}Widget::%{APPNAME}Widget(QWidget* parent, const char* name, WFlags fl)
        : %{APPNAME}WidgetBase(parent,name,fl)
{}

%{APPNAME}Widget::~%{APPNAME}Widget()
{}

/*$SPECIALIZATION$*/
void %{APPNAME}Widget::button_clicked()
{
    if ( label->text().isEmpty() )
    {
        label->setText( "Hello World!" );
    }
    else
    {
        label->clear();
    }
}



#include "%{APPNAMELC}widget.moc"