diff --git a/Konquest.cc b/Konquest.cc index 3c6ca69..b6e7856 100644 --- a/Konquest.cc +++ b/Konquest.cc @@ -1,76 +1,78 @@ /* Copyright 2003 Russell Steffen Copyright 2003 Stephan Zehetner Copyright 2006 Dmitry Suzdalev Copyright 2006 Inge Wallin Copyright 2006 Pierre Ducroquet This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include #include #include #include #include #include #include #include "mainwin.h" static const char description[] = I18N_NOOP("Galactic Strategy KDE Game"); #define KONQUEST_VERSION "2.4" int main(int argc, char **argv) { + // Fixes blurry icons with fractional scaling + QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); QApplication app(argc, argv); Kdelibs4ConfigMigrator migrate(QStringLiteral("konquest")); migrate.setConfigFiles(QStringList() << QStringLiteral("konquestrc")); migrate.setUiFiles(QStringList() << QStringLiteral("konquestui.rc")); migrate.migrate(); KLocalizedString::setApplicationDomain("konquest"); KAboutData aboutData( QStringLiteral("konquest"), i18n("Konquest"), KONQUEST_VERSION, i18n(description), KAboutLicense::GPL, i18n("Copyright (c) 1999-2013, Developers"), QStringLiteral("https://kde.org/applications/games/org.kde.konquest") ); aboutData.addAuthor(i18n("Russ Steffen"), QString(), QStringLiteral("rsteffen@bayarea.net")); aboutData.addCredit(i18n("Stephan Zehetner"), i18n("Computer/AI Player"), QStringLiteral("s.zehetner@nevox.org")); aboutData.addCredit(i18n("Dmitry Suzdalev"), i18n("Port to KDE4"), QStringLiteral("dimsuz@gmail.com")); aboutData.addCredit(i18n("Inge Wallin"), i18n("Cleaning and bugfixing"), QStringLiteral("inge@lysator.liu.se")); aboutData.addCredit(i18n("Pierre Ducroquet"), i18n("Cleaning and bugfixing, maintenance"), QStringLiteral("pinaraf@gmail.com")); aboutData.addCredit(i18n("Sean D'Epagnier"), i18n("Gameplay Enhancements"), QStringLiteral("geckosenator@gmail.com")); aboutData.setOrganizationDomain(QByteArray("kde.org")); QCommandLineParser parser; KAboutData::setApplicationData(aboutData); KCrash::initialize(); aboutData.setupCommandLine(&parser); parser.process(app); aboutData.processCommandLine(&parser); KDBusService service; if (app.isSessionRestored()) kRestoreMainWindows(); else { MainWindow *w = new MainWindow; w->show(); } app.setWindowIcon(QIcon::fromTheme(QStringLiteral("konquest"))); return app.exec(); }