Commit 32e8ba14 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 6811d234
Pipeline #115148 passed with stage
in 44 seconds
......@@ -14,7 +14,9 @@
#include <KAboutData>
#include <KCrash>
#include <KDBusService>
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <Kdelibs4ConfigMigrator>
#endif
#include <QCommandLineParser>
#include <QCommandLineOption>
#include <QStandardPaths>
......@@ -28,15 +30,18 @@
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);
KLocalizedString::setApplicationDomain("ksnakeduel");
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
Kdelibs4ConfigMigrator migrate(QStringLiteral("ksnakeduel"));
migrate.setConfigFiles(QStringList() << QStringLiteral("ksnakeduelrc"));
migrate.setUiFiles(QStringList() << QStringLiteral("ksnakeduelui.rc"));
migrate.migrate();
#endif
KAboutData aboutData( QStringLiteral("ksnakeduel"), i18n("KSnakeDuel"),
QStringLiteral(KSNAKEDUEL_VERSION_STRING),
......
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