Add KAboutData's command line arguments to the QCommandLineParser

This adds back --author and --license.
This commit is contained in:
Martin Gräßlin 2014-05-27 09:34:14 +02:00
parent 7fe2b08bf9
commit 14c5637d68

View file

@ -513,8 +513,10 @@ KWIN_EXPORT int kdemain(int argc, char * argv[])
parser.addOption(lockOption); parser.addOption(lockOption);
parser.addOption(replaceOption); parser.addOption(replaceOption);
parser.addOption(crashesOption); parser.addOption(crashesOption);
aboutData.setupCommandLine(&parser);
parser.process(a); parser.process(a);
aboutData.processCommandLine(&parser);
KWin::Application::setCrashCount(parser.value(crashesOption).toInt()); KWin::Application::setCrashCount(parser.value(crashesOption).toInt());
a.setConfigLock(parser.isSet(lockOption)); a.setConfigLock(parser.isSet(lockOption));