Commit e451ff1f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Kdelibs4ConfigMigrator was removed in qt6

parent d6607b7a
Pipeline #125093 passed with stage
in 58 seconds
......@@ -16,7 +16,9 @@
#include <KLocalizedString>
#include <KgDifficulty>
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <kdelibs4configmigrator.h>
#endif
#include <QApplication>
#include <QCommandLineParser>
#include <QStandardPaths>
......@@ -29,10 +31,12 @@ int main(int argc, char **argv)
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
#endif
QApplication app(argc, argv);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
Kdelibs4ConfigMigrator migrate(QStringLiteral("kdiamond"));
migrate.setConfigFiles(QStringList() << QStringLiteral("kdiamondrc") << QStringLiteral("kdiamond.notifyrc"));
migrate.setUiFiles(QStringList() << QStringLiteral("kdiamondui.rc"));
migrate.migrate();
#endif
KLocalizedString::setApplicationDomain("kdiamond");
KAboutData about(QStringLiteral("kdiamond"), i18nc("The application's name", "KDiamond"),
......
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