summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/khello2/widget.cpp
blob: 266e894f50d25d34ce386c6d9ac6006470929cc1 (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 <tqlabel.h>

#include "%{APPNAMELC}widget.h"

%{APPNAME}Widget::%{APPNAME}Widget(TQWidget* 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"