blob: 40e2d2bb74112e015169784e8e4223ff346f4fee (
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* tqparent, const char* name, WFlags fl)
: %{APPNAME}WidgetBase(tqparent,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"
|