summaryrefslogtreecommitdiffstats
path: root/lib/tqwtplot3d/examples/enrichments/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tqwtplot3d/examples/enrichments/src/main.cpp')
-rw-r--r--lib/tqwtplot3d/examples/enrichments/src/main.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/tqwtplot3d/examples/enrichments/src/main.cpp b/lib/tqwtplot3d/examples/enrichments/src/main.cpp
new file mode 100644
index 0000000..a590d9d
--- /dev/null
+++ b/lib/tqwtplot3d/examples/enrichments/src/main.cpp
@@ -0,0 +1,30 @@
+/********************************************************************
+ created: 2003/09/10
+ filename: main.cpp
+
+ author: Micha Bieber
+*********************************************************************/
+
+#include <qapplication.h>
+#include "enrichmentmainwindow.h"
+
+int main( int argc, char** argv )
+{
+ QApplication app( argc, argv );
+
+ if ( !QGLFormat::hasOpenGL() )
+ {
+ qWarning( "This system has no OpenGL support. Exiting." );
+ return -1;
+ }
+
+ EnrichmentMainWindow mainwindow;
+
+#if QT_VERSION < 0x040000
+ app.setMainWidget(&mainwindow);
+#endif
+
+ mainwindow.show();
+
+ return app.exec();
+}