From b85a292ce06475d560bfa1195b63a8bfe211f22d Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 11 Jul 2012 14:15:27 -0500 Subject: Add 0.2.7 release of qwtplot3d for future TQt3 conversion and use --- lib/tqwtplot3d/examples/mesh2/src/main.cpp | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 lib/tqwtplot3d/examples/mesh2/src/main.cpp (limited to 'lib/tqwtplot3d/examples/mesh2/src/main.cpp') 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 +#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(); +} -- cgit v1.2.3