File indexing completed on 2022-09-27 13:19:24

0001 /*
0002     SPDX-FileCopyrightText: 1998-2001 Andreas Zehender <az@azweb.de>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include <KAboutData>
0008 #include <KCrash>
0009 #include <KDBusService>
0010 #include <KLocalizedString>
0011 
0012 #include <QApplication>
0013 #include <QCommandLineParser>
0014 
0015 #include "kspaceduel_version.h"
0016 #include "topwidget.h"
0017 
0018 int main(int argc,char **argv)
0019 {
0020     // Fixes blurry icons with fractional scaling
0021 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
0022     QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
0023 #endif
0024     QApplication app(argc, argv);
0025 
0026     KLocalizedString::setApplicationDomain("kspaceduel");
0027 
0028     KAboutData aboutData( QStringLiteral("kspaceduel"), i18n("KSpaceDuel"), 
0029             QStringLiteral(KSPACEDUEL_VERSION_STRING),
0030             i18n("Space Arcade Game"),
0031             KAboutLicense::GPL,
0032             i18n("(c) 1998-2001, Andreas Zehender"),
0033             QString(),
0034             QStringLiteral("https://apps.kde.org/kspaceduel") );
0035     aboutData.addAuthor(i18n("Andreas Zehender"),i18n("Original Program"), QStringLiteral("az@azweb.de"));
0036     aboutData.addAuthor(i18n("Branan Riley"),i18n("SVG Renderer"), QStringLiteral("branan@gmail.com"));
0037     QCommandLineParser parser;
0038     KAboutData::setApplicationData(aboutData);
0039     KCrash::initialize();
0040     aboutData.setupCommandLine(&parser);
0041     parser.process(app);
0042     aboutData.processCommandLine(&parser);
0043     KDBusService service;
0044 
0045     MyTopLevelWidget *top = new MyTopLevelWidget;
0046     top->show();
0047     top->start();
0048 
0049     app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kspaceduel")));
0050 
0051     return app.exec();
0052 }
0053