Add checkbox for option xinerama-shadow-crop
[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>
e99d19d1 6#include <QCommandLineParser>
012d3267 7#include "maindialog.h"
012d3267
HJYP
8
9int main(int argc, char** argv) {
10 QApplication app(argc, argv);
338997ea 11 app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
aaecf43e 12
e99d19d1
AG
13 QCommandLineParser parser;
14 parser.setApplicationDescription(QStringLiteral("Compton Conf"));
15 const QString VERINFO = QStringLiteral(COMPTONCONF_VERSION
16 "\nQt " QT_VERSION_STR);
17 app.setApplicationVersion(VERINFO);
18 parser.addVersionOption();
19 parser.addHelpOption();
20 parser.process(app);
21
aaecf43e
HJYP
22 // load translations
23 QTranslator qtTranslator, translator;
24 // install the translations built-into Qt itself
25 qtTranslator.load("qt_" + QLocale::system().name(), QLibraryInfo::location(QLibraryInfo::TranslationsPath));
26 app.installTranslator(&qtTranslator);
27 // install our own tranlations
28 translator.load("compton-conf_" + QLocale::system().name(), COMPTON_CONF_DATA_DIR "/translations");
29 app.installTranslator(&translator);
30
c3b7cf80 31 MainDialog dlg;
012d3267
HJYP
32 dlg.exec();
33 return 0;
34}