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