Commit 87b13430 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compiles against qt6

parent 4d98c053
Pipeline #193428 passed with stage
in 2 minutes and 31 seconds
......@@ -10,7 +10,9 @@
#include <KAboutData>
#include <KCrash>
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <Kdelibs4ConfigMigrator>
#endif
#include <QApplication>
#include <KLocalizedString>
......@@ -31,13 +33,16 @@ namespace Kigo { /* This is only a Doxygen stub */ }
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("kigo"));
migrate.setConfigFiles(QStringList() << QStringLiteral("kigorc"));
migrate.setUiFiles(QStringList() << QStringLiteral("kigoui.rc"));
migrate.migrate();
#endif
KLocalizedString::setApplicationDomain("kigo");
......
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