Commit 2d7547bd 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 4f654f24
Pipeline #115149 passed with stage
in 57 seconds
......@@ -13,7 +13,9 @@
#include <KAboutData>
#include <KCrash>
#include <KMessageBox>
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <Kdelibs4ConfigMigrator>
#endif
#include <KDBusService>
#include <QTimer>
......@@ -28,13 +30,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("katomic"));
migrate.setConfigFiles(QStringList() << QStringLiteral("katomicrc"));
migrate.setUiFiles(QStringList() << QStringLiteral("katomicui.rc"));
migrate.migrate();
#endif
KLocalizedString::setApplicationDomain("katomic");
KAboutData aboutData( QStringLiteral("katomic"), i18n("KAtomic"),
QStringLiteral(KATOMIC_VERSION_STRING),
......
Supports Markdown
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