diff options
Diffstat (limited to 'tools/designer/examples/addressbook/main.cpp')
-rw-r--r-- | tools/designer/examples/addressbook/main.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/designer/examples/addressbook/main.cpp b/tools/designer/examples/addressbook/main.cpp new file mode 100644 index 0000000..9a58f60 --- /dev/null +++ b/tools/designer/examples/addressbook/main.cpp @@ -0,0 +1,11 @@ +#include <qapplication.h> +#include "addressbook.h" + +int main( int argc, char ** argv ) +{ + QApplication a( argc, argv ); + AddressBook *w = new AddressBook; + w->show(); + a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) ); + return a.exec(); +} |