Commit 2593e767 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 c4362162
Pipeline #115146 passed with stage
in 44 seconds
......@@ -15,7 +15,9 @@
#include <KLocalizedString>
#include <KAboutData>
#include <KCrash>
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <kdelibs4configmigrator.h>
#endif
#include <QCommandLineParser>
#include <KDBusService>
#include "klines.h"
......@@ -25,12 +27,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("klines"));
migrate.setConfigFiles(QStringList() << QStringLiteral("klinesrc"));
migrate.setUiFiles(QStringList() << QStringLiteral("klinesui.rc"));
migrate.migrate();
#endif
KLocalizedString::setApplicationDomain("klines");
KAboutData aboutData(QStringLiteral("klines"), i18n("Kolor Lines"), QStringLiteral(KLINES_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