Commit c8b75e1b 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 7bef7d97
Pipeline #115154 passed with stage
in 1 minute and 2 seconds
......@@ -15,20 +15,25 @@
#include <KLocalizedString>
#include <KDBusService>
#include <QCommandLineParser>
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <Kdelibs4ConfigMigrator>
#endif
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("kjumpingcube"));
migrate.setConfigFiles(QStringList() << QStringLiteral("kjumpingcuberc"));
migrate.setUiFiles(QStringList() << QStringLiteral("kjumpingcubeui.rc"));
migrate.migrate();
#endif
KLocalizedString::setApplicationDomain("kjumpingcube");
KAboutData aboutData( QStringLiteral("kjumpingcube"), i18n("KJumpingCube"),
......
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