Added default CMAKE_BUILD_TYPE and proper version
[lxde/compton-conf.git] / compton-conf.cpp
CommitLineData
012d3267
HJYP
1#include "compton-conf.h"
2#include <QApplication>
aaecf43e
HJYP
3#include <QLocale>
4#include <QLibraryInfo>
5#include <QTranslator>
012d3267 6#include "maindialog.h"
012d3267
HJYP
7
8int main(int argc, char** argv) {
9 QApplication app(argc, argv);
aaecf43e
HJYP
10
11 // load translations
12 QTranslator qtTranslator, translator;
13 // install the translations built-into Qt itself
14 qtTranslator.load("qt_" + QLocale::system().name(), QLibraryInfo::location(QLibraryInfo::TranslationsPath));
15 app.installTranslator(&qtTranslator);
16 // install our own tranlations
17 translator.load("compton-conf_" + QLocale::system().name(), COMPTON_CONF_DATA_DIR "/translations");
18 app.installTranslator(&translator);
19
c3b7cf80 20 MainDialog dlg;
012d3267
HJYP
21 dlg.exec();
22 return 0;
23}