+#include <QtGui/QApplication>
-
-#include <qapplication.h>
#include "hxx2salome.h"
int main( int argc, char ** argv )
{
- QApplication a( argc, argv );
-
- HXX2Salome *mw = new HXX2Salome();
- mw->setCaption( "Salome interface to C++ component generator" );
- a.setMainWidget( mw );
- mw->show();
+ QApplication a( argc, argv );
- a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
- int result = a.exec();
- delete mw;
- return result;
+ HXX2Salome mw;
+ mw.show();
+
+ return a.exec();
}
-