Git commit dbaf705443e6e769fbc3c950a8db4f9e301ad9d7 by Christoph Feck.
Committed on 29/09/2014 at 21:45.
Pushed by cfeck into branch 'frameworks'.
Add dummy QCommandLineParser so that --version works
M +6 -0 kcalc.cpp
http://commits.kde.org/kcalc/dbaf705443e6e769fbc3c950a8db4f9e301ad9d7
diff --git a/kcalc.cpp b/kcalc.cpp
index 2473020..95ad96d 100644
--- a/kcalc.cpp
+++ b/kcalc.cpp
@@ -27,6 +27,7 @@ along with this program. If not, see .
#include
=
#include
+#include
#include
#include
#include
@@ -2293,6 +2294,11 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char =
*argv[]) {
KAboutData::setApplicationData(aboutData);
app.setWindowIcon(QIcon::fromTheme(QLatin1String("accessories-calculator"=
)));
=
+ QCommandLineParser parser;
+ parser.addHelpOption();
+ parser.addVersionOption();
+ parser.process(app);
+
// force system locale to "C" internally [bug 159168]
setlocale(LC_NUMERIC, "C");
=