You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
482 B
31 lines
482 B
15 years ago
|
%{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"
|
||
|
|