add minimal cmdline parser

This commit is contained in:
pazos 2018-04-25 15:26:54 +02:00
parent e1359ace86
commit 400c385a5c

View file

@ -90,6 +90,8 @@ int main(int argc, char *argv[])
bool isWindows = true;
#endif
// disable "QApplication: invalid style override passed" warning
if (isDesktop) putenv((char*)"QT_STYLE_OVERRIDE=fusion");
Monero::Utils::onStartup();
// // Enable high DPI scaling on windows & linux
@ -104,8 +106,6 @@ int main(int argc, char *argv[])
MainApp app(argc, argv);
qDebug() << "app startd";
app.setApplicationName("monero-gui");
app.setOrganizationDomain("getmonero.org");
app.setOrganizationName("monero-project");
@ -117,6 +117,12 @@ int main(int argc, char *argv[])
filter *eventFilter = new filter;
app.installEventFilter(eventFilter);
QCommandLineParser parser;
parser.addHelpOption();
parser.process(app);
qDebug() << "app startd";
// registering types for QML
qmlRegisterType<clipboardAdapter>("moneroComponents.Clipboard", 1, 0, "Clipboard");