Commit 4be6e88d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add commandline support

parent 0a5f1568
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include <QFontInfo> #include <QFontInfo>
#include <QStandardPaths> #include <QStandardPaths>
#include <QQmlEngine> #include <QQmlEngine>
#include <QCommandLineParser>
static const char description[] = static const char description[] =
I18N_NOOP("Classical hangman game by KDE"); I18N_NOOP("Classical hangman game by KDE");
...@@ -131,6 +132,11 @@ int main(int argc, char **argv) ...@@ -131,6 +132,11 @@ int main(int argc, char **argv)
KAboutData::setApplicationData(aboutData); KAboutData::setApplicationData(aboutData);
QCommandLineParser parser;
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);
KCrash::initialize(); KCrash::initialize();
QFont f(QStringLiteral("Domestic Manners"), 12, QFont::Normal, true); QFont f(QStringLiteral("Domestic Manners"), 12, QFont::Normal, true);
......
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