File indexing completed on 2024-05-12 05:46:35
0001 /* 0002 Copyright (C) 1998-2001 Andreas Zehender <az@azweb.de> 0003 0004 This program is free software; you can redistribute it and/or modify 0005 it under the terms of the GNU General Public License as published by 0006 the Free Software Foundation; either version 2 of the License, or 0007 (at your option) any later version. 0008 0009 This program is distributed in the hope that it will be useful, 0010 but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0012 GNU General Public License for more details. 0013 0014 You should have received a copy of the GNU General Public License 0015 along with this program; if not, write to the Free Software 0016 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 0017 */ 0018 0019 #include <KAboutData> 0020 #include <KCrash> 0021 #include <KDBusService> 0022 #include <KLocalizedString> 0023 0024 #include <QApplication> 0025 #include <QCommandLineParser> 0026 0027 #include "kspaceduel_version.h" 0028 #include "topwidget.h" 0029 0030 int main(int argc,char **argv) 0031 { 0032 // Fixes blurry icons with fractional scaling 0033 QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); 0034 QApplication app(argc, argv); 0035 0036 KLocalizedString::setApplicationDomain("kspaceduel"); 0037 0038 KAboutData aboutData( QStringLiteral("kspaceduel"), i18n("KSpaceDuel"), 0039 QStringLiteral(KSPACEDUEL_VERSION_STRING), 0040 i18n("Space Arcade Game"), 0041 KAboutLicense::GPL, 0042 i18n("(c) 1998-2001, Andreas Zehender"), 0043 QString(), 0044 QStringLiteral("https://kde.org/applications/games/org.kde.kspaceduel") ); 0045 aboutData.addAuthor(i18n("Andreas Zehender"),i18n("Original Program"), QStringLiteral("az@azweb.de")); 0046 aboutData.addAuthor(i18n("Branan Riley"),i18n("SVG Renderer"), QStringLiteral("branan@gmail.com")); 0047 QCommandLineParser parser; 0048 KAboutData::setApplicationData(aboutData); 0049 KCrash::initialize(); 0050 aboutData.setupCommandLine(&parser); 0051 parser.process(app); 0052 aboutData.processCommandLine(&parser); 0053 KDBusService service; 0054 0055 MyTopLevelWidget *top = new MyTopLevelWidget; 0056 top->show(); 0057 top->start(); 0058 0059 app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kspaceduel"))); 0060 0061 return app.exec(); 0062 } 0063