src/main.cpp

Go to the documentation of this file.
00001 
00008 #include <QApplication>
00009 #include <QTranslator>
00010 #include "mainwindowimpl.h"
00011 
00012 #include <QtDebug>
00013 //
00014 int main(int argc, char ** argv)
00015 {
00016     QApplication app( argc, argv );
00017 
00018     QCoreApplication::setOrganizationName("QCJM Corp");
00019     QCoreApplication::setOrganizationDomain("qcjm.example");
00020     QCoreApplication::setApplicationName("QCJM");
00021     QCoreApplication::setApplicationVersion("0.1");
00022 
00023     QString locale = QLocale::system().name();
00024     QTranslator translator;
00025     translator.load(":/tr/"+locale); // TODO: fix path to tr files
00026     app.installTranslator(&translator);
00027 
00028     MainWindowImpl win;
00029     win.show();
00030     app.connect( &app, SIGNAL( lastWindowClosed() ), &app, SLOT( quit() ) );
00031     return app.exec();
00032 }

Generated on Mon Mar 16 18:46:05 2009 for QCJM by  doxygen 1.5.4