From dfb9c76738bb68e235114c5ad43dbd26a59b98ab Mon Sep 17 00:00:00 2001 From: kergoth Date: Thu, 06 Jun 2002 23:31:00 +0000 Subject: Initial revision --- (limited to 'examples/application/example.cpp') diff --git a/examples/application/example.cpp b/examples/application/example.cpp new file mode 100644 index 0000000..1e0bbe9 --- a/dev/null +++ b/examples/application/example.cpp @@ -0,0 +1,28 @@ +#include "example.h" +#include + +/* + * Constructs a Example which is a child of 'parent', with the + * name 'name' and widget flags set to 'f' + */ +Example::Example( QWidget* parent, const char* name, WFlags fl ) + : ExampleBase( parent, name, fl ) +{ + connect(quit, SIGNAL(clicked()), this, SLOT(goodBye())); +} + +/* + * Destroys the object and frees any allocated resources + */ +Example::~Example() +{ + // no need to delete child widgets, Qt does it all for us +} + +/* + * A simple slot... not very interesting. + */ +void Example::goodBye() +{ + close(); +} -- cgit v0.9.0.2