fixed project file
[musique.git] / main.cpp
blob6bfcf9242b02abaed2de2a98d56dd54300451187
1 #include <QtGui>
2 #include <QTranslator>
3 #include "constants.h"
5 using namespace musique;
7 int main(int argc, char * argv[])
9 QApplication app(argc, argv);
11 QString locale = QLocale::system().name();
12 QTranslator translator;
13 translator.load(QString(UI_PATH_TRANSLATIONS "musique_") + locale);
14 app.installTranslator(&translator);
15 app.setQuitOnLastWindowClosed(false);
17 //open config dir or create it if does not exist
18 /* {
19 QDir workdir(UI_PATH_WORK);
20 if (!workdir.exists()) {
21 workdir.cdUp();
22 workdir.mkdir(UI_DIR_WORK);
24 }*/
26 CConnectionManager mainwin;
27 return app.exec();