Commit 77258a69 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Migration code will be removed in qt6 + AA_UseHighDpiPixmaps is enabled by default in qt6

parent 8b3b1fa2
Pipeline #115145 passed with stage
in 32 seconds
......@@ -13,7 +13,9 @@
#include <KCrash>
#include <KDBusService>
#include <KLocalizedString>
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <Kdelibs4ConfigMigrator>
#endif
// Bomber
#include "bomber.h"
......@@ -22,13 +24,16 @@
int main(int argc, char ** argv)
{
// Fixes blurry icons with fractional scaling
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
#endif
QApplication app(argc, argv);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
Kdelibs4ConfigMigrator migrate(QStringLiteral("bomber"));
migrate.setConfigFiles(QStringList() << QStringLiteral("bomberrc"));
migrate.setUiFiles(QStringList() << QStringLiteral("bomberui.rc"));
migrate.migrate();
#endif
KLocalizedString::setApplicationDomain("bomber");
KAboutData about(QStringLiteral("bomber"), i18n("Bomber"),
......
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