mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 12:09:57 +00:00
add minimal cmdline parser
This commit is contained in:
parent
e1359ace86
commit
400c385a5c
1 changed files with 8 additions and 2 deletions
10
main.cpp
10
main.cpp
|
@ -90,6 +90,8 @@ int main(int argc, char *argv[])
|
||||||
bool isWindows = true;
|
bool isWindows = true;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// disable "QApplication: invalid style override passed" warning
|
||||||
|
if (isDesktop) putenv((char*)"QT_STYLE_OVERRIDE=fusion");
|
||||||
|
|
||||||
Monero::Utils::onStartup();
|
Monero::Utils::onStartup();
|
||||||
// // Enable high DPI scaling on windows & linux
|
// // Enable high DPI scaling on windows & linux
|
||||||
|
@ -104,8 +106,6 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
MainApp app(argc, argv);
|
MainApp app(argc, argv);
|
||||||
|
|
||||||
qDebug() << "app startd";
|
|
||||||
|
|
||||||
app.setApplicationName("monero-gui");
|
app.setApplicationName("monero-gui");
|
||||||
app.setOrganizationDomain("getmonero.org");
|
app.setOrganizationDomain("getmonero.org");
|
||||||
app.setOrganizationName("monero-project");
|
app.setOrganizationName("monero-project");
|
||||||
|
@ -117,6 +117,12 @@ int main(int argc, char *argv[])
|
||||||
filter *eventFilter = new filter;
|
filter *eventFilter = new filter;
|
||||||
app.installEventFilter(eventFilter);
|
app.installEventFilter(eventFilter);
|
||||||
|
|
||||||
|
QCommandLineParser parser;
|
||||||
|
parser.addHelpOption();
|
||||||
|
parser.process(app);
|
||||||
|
|
||||||
|
qDebug() << "app startd";
|
||||||
|
|
||||||
// registering types for QML
|
// registering types for QML
|
||||||
qmlRegisterType<clipboardAdapter>("moneroComponents.Clipboard", 1, 0, "Clipboard");
|
qmlRegisterType<clipboardAdapter>("moneroComponents.Clipboard", 1, 0, "Clipboard");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue