Initial commit (WARNING: app doesn't do anything yet)
[qp3.git] / gui / main.cpp
blobb360ee2fba340bc2e51de20bd581e3d684f6284c
1 #include <QtGui>
2 #include <QTranslator>
3 #include "qp3mainwindow.h"
4 #include "constants.h"
6 using namespace qp3;
8 int main(int argc, char * argv[])
10 QApplication app(argc, argv);
12 QString locale = QLocale::system().name();
13 QTranslator translator;
14 translator.load(QString(UI_PATH_TRANSLATIONS "qp3_") + locale);
15 app.installTranslator(&translator);
16 //app.setQuitOnLastWindowClosed(false);
18 /* {
19 QDir workdir(UI_PATH_WORK);
20 if (!workdir.exists()) {
21 workdir.cdUp();
22 workdir.mkdir(UI_DIR_WORK);
24 }*/
26 CQp3MainWindow mainWindow;
28 mainWindow.show();
29 return app.exec();