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