00001 #include <qapplication.h> 00002 #include "mainwindow.h" 00003 /* ------------------------------------------------------------------------------------ 00004 The main program. 00005 00006 Written by Nicholas Phillips. 00007 QT4 implementation. Michael R. Greason, ADNET, 23 August 2007. 00008 ------------------------------------------------------------------------------------ */ 00009 int main( int argc, char ** argv ) 00010 { 00011 QApplication app( argc, argv ); 00012 mainWindow *w = new mainWindow(); 00013 w->show(); 00014 app.connect( &app, SIGNAL( lastWindowClosed() ), &app, SLOT( quit() ) ); 00015 if (argc > 1) w->readFile(argv[argc-1]); 00016 return app.exec(); 00017 }