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