mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Kdelibs4ConfigMigrator is deprecated in KF6
This commit is contained in:
parent
e58f0c085c
commit
5d3774aa17
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue