mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
Kdelibs4ConfigMigrator is deprecated in KF6
This commit is contained in:
parent
e58f0c085c
commit
5d3774aa17
|
@ -21,10 +21,13 @@
|
||||||
#include <KCrash>
|
#include <KCrash>
|
||||||
#include <KDBusService>
|
#include <KDBusService>
|
||||||
#include <KLocalizedString>
|
#include <KLocalizedString>
|
||||||
#include <Kdelibs4ConfigMigrator>
|
|
||||||
#include <KConfigGui>
|
#include <KConfigGui>
|
||||||
#include <KIO/PreviewJob>
|
#include <KIO/PreviewJob>
|
||||||
|
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||||
|
#include <Kdelibs4ConfigMigrator>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QCommandLineParser>
|
#include <QCommandLineParser>
|
||||||
#include <QDBusConnection>
|
#include <QDBusConnection>
|
||||||
|
@ -72,10 +75,12 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
KCrash::initialize();
|
KCrash::initialize();
|
||||||
|
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||||
Kdelibs4ConfigMigrator migrate(QStringLiteral("dolphin"));
|
Kdelibs4ConfigMigrator migrate(QStringLiteral("dolphin"));
|
||||||
migrate.setConfigFiles(QStringList() << QStringLiteral("dolphinrc"));
|
migrate.setConfigFiles(QStringList() << QStringLiteral("dolphinrc"));
|
||||||
migrate.setUiFiles(QStringList() << QStringLiteral("dolphinpart.rc") << QStringLiteral("dolphinui.rc"));
|
migrate.setUiFiles(QStringList() << QStringLiteral("dolphinpart.rc") << QStringLiteral("dolphinui.rc"));
|
||||||
migrate.migrate();
|
migrate.migrate();
|
||||||
|
#endif
|
||||||
|
|
||||||
KLocalizedString::setApplicationDomain("dolphin");
|
KLocalizedString::setApplicationDomain("dolphin");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue