Commit 5d3774aa authored by Ahmad Samir's avatar Ahmad Samir
Browse files

Kdelibs4ConfigMigrator is deprecated in KF6

parent e58f0c08
......@@ -21,10 +21,13 @@
#include <KCrash>
#include <KDBusService>
#include <KLocalizedString>
#include <Kdelibs4ConfigMigrator>
#include <KConfigGui>
#include <KIO/PreviewJob>
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <Kdelibs4ConfigMigrator>
#endif
#include <QApplication>
#include <QCommandLineParser>
#include <QDBusConnection>
......@@ -72,10 +75,12 @@ int main(int argc, char **argv)
KCrash::initialize();
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
Kdelibs4ConfigMigrator migrate(QStringLiteral("dolphin"));
migrate.setConfigFiles(QStringList() << QStringLiteral("dolphinrc"));
migrate.setUiFiles(QStringList() << QStringLiteral("dolphinpart.rc") << QStringLiteral("dolphinui.rc"));
migrate.migrate();
#endif
KLocalizedString::setApplicationDomain("dolphin");
......
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