From bd0f3345a938b35ce6a12f6150373b0955b8dd12 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 10 Jul 2011 15:24:15 -0500 Subject: Add Qt3 development HEAD version --- examples/chart/main.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 examples/chart/main.cpp (limited to 'examples/chart/main.cpp') diff --git a/examples/chart/main.cpp b/examples/chart/main.cpp new file mode 100644 index 0000000..dde8033 --- /dev/null +++ b/examples/chart/main.cpp @@ -0,0 +1,21 @@ +#include +#include "chartform.h" + + +int main( int argc, char *argv[] ) +{ + QApplication app( argc, argv ); + + QString filename; + if ( app.argc() > 1 ) { + filename = app.argv()[1]; + if ( !filename.endsWith( ".cht" ) ) + filename = QString::null; + } + + ChartForm *cf = new ChartForm( filename ); + app.setMainWidget( cf ); + cf->show(); + + return app.exec(); +} -- cgit v1.2.3