Commit 95625eb7 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 38d1a2ed
Pipeline #115152 passed with stage
in 1 minute and 7 seconds
......@@ -30,7 +30,9 @@
// KF
#include <KAboutData>
#include <KCrash>
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <Kdelibs4ConfigMigrator>
#endif
#include <KLocalizedString>
// Qt
#include <QApplication>
......@@ -51,14 +53,17 @@ int main(int argc, char *argv[])
global_debug = 0;
// 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("kfourinline"));
migrate.setConfigFiles(QStringList() << QStringLiteral("kfourinlinerc"));
migrate.setUiFiles(QStringList() << QStringLiteral("kfourinlineui.rc"));
migrate.migrate();
#endif
KLocalizedString::setApplicationDomain("kfourinline");
KAboutData aboutData( QStringLiteral("kfourinline"), i18n("KFourInLine"),
QStringLiteral(KFOURINLINE_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