File indexing completed on 2024-04-14 04:02:38

0001 /*
0002     SPDX-FileCopyrightText: 2015 Jakob Gruber <jakob.gruber@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include <config.h>
0008 #include <picmi_version.h>
0009 
0010 #include <KAboutData>
0011 #include <KCrash>
0012 #include <KDBusService>
0013 #include <KLocalizedString>
0014 #include <QApplication>
0015 #include <QCommandLineParser>
0016 
0017 #include "gui/mainwindow.h"
0018 
0019 int main(int argc, char *argv[])
0020 {
0021     QApplication app(argc, argv);
0022     KLocalizedString::setApplicationDomain(QByteArrayLiteral("picmi"));
0023 
0024     KAboutData about(QStringLiteral("picmi"),
0025                       i18n("Picmi"),
0026                       QStringLiteral(PICMI_VERSION_STRING),
0027                       i18n("Picmi - a nonogram puzzle game"),
0028                       KAboutLicense::GPL_V2,
0029                       i18n("(c) 2012 - 2015 The Picmi Authors"),
0030                       QString(),
0031                       QStringLiteral("https://apps.kde.org/picmi"));
0032     about.addAuthor(i18n("Jakob Gruber"), i18n("Picmi Author"), QStringLiteral("jakob.gruber@gmail.com"));
0033 
0034     KAboutData::setApplicationData(about);
0035     QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("picmi")));
0036 
0037     KCrash::initialize();
0038 
0039     QCommandLineParser parser;
0040     about.setupCommandLine(&parser);
0041     parser.process(app);
0042     about.processCommandLine(&parser);
0043 
0044     KDBusService service;
0045 
0046     MainWindow *w = new MainWindow;
0047     w->show();
0048 
0049     return app.exec();
0050 }