summaryrefslogtreecommitdiffstats
path: root/examples/distributor/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/distributor/main.cpp')
-rw-r--r--examples/distributor/main.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/distributor/main.cpp b/examples/distributor/main.cpp
new file mode 100644
index 0000000..cded77d
--- /dev/null
+++ b/examples/distributor/main.cpp
@@ -0,0 +1,11 @@
+#include <qapplication.h>
+#include "distributor.h"
+
+int main( int argc, char ** argv )
+{
+ QApplication a( argc, argv );
+ Distributor w;
+ w.show();
+ a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
+ return a.exec();
+}