1
#include "%{APPNAMELC}.h"
2
#include <qpushbutton.h>
3
#include <opie/oapplicationfactory.h>
5
typedef OApplicationFactory<%{APPNAME}> %{APPNAME}Factory;
6
OPIE_EXPORT_APP( %{APPNAME}Factory )
9
* Constructs a %{APPNAME} which is a child of 'parent', with the
10
* name 'name' and widget flags set to 'f'
12
%{APPNAME}::%{APPNAME}( QWidget* parent, const char* name, WFlags fl )
13
: %{APPNAME}Base( parent, name, fl )
15
connect(quit, SIGNAL(clicked()), this, SLOT(goodBye()));
19
* Destroys the object and frees any allocated resources
21
%{APPNAME}::~%{APPNAME}()
23
// no need to delete child widgets, Qt does it all for us
27
* A simple slot... not very interesting.
29
void %{APPNAME}::goodBye()