refs #912, application description as functions

(can be reused in identifier)
This commit is contained in:
Klaus Basan
2017-03-18 22:49:39 +01:00
committed by Mathew Sutcliffe
parent 09b9ca5d50
commit 142bc82e03
6 changed files with 40 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ int main(int argc, char *argv[])
CGuiApplication::highDpiScreenSupport();
QApplication qa(argc, argv); // needed
Q_UNUSED(qa);
CGuiApplication a("swift launcher", CApplicationInfo::Laucher, CIcons::swiftLauncher1024());
CGuiApplication a(CApplicationInfo::swiftLauncher(), CApplicationInfo::Laucher, CIcons::swiftLauncher1024());
a.addParserOption({{"i", "installer"}, QCoreApplication::translate("main", "Installer setup.") });
if (!a.parse()) { return EXIT_FAILURE; }
a.useWebDataServices(BlackCore::CWebReaderFlags::AllSwiftDbReaders, CDatabaseReaderConfigList::forLauncher());