Commit 73033e73 authored by Christoph Feck's avatar Christoph Feck

Add dummy QCommandLineParser so that --version works

parent 8f3aa115
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
***************************************************************************/ ***************************************************************************/
#include <QApplication> #include <QApplication>
#include <QCommandLineParser>
#include <KAboutData> #include <KAboutData>
#include <KLocalizedString> #include <KLocalizedString>
...@@ -61,6 +62,11 @@ int main(int argc, char *argv[]) ...@@ -61,6 +62,11 @@ int main(int argc, char *argv[])
} }
else else
{ {
QCommandLineParser parser;
parser.addHelpOption();
parser.addVersionOption();
parser.process(app);
kmagapp = new KmagApp(); kmagapp = new KmagApp();
kmagapp->show(); kmagapp->show();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment