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

In kf6 kde4 migration code will be removed

parent c8aef7be
Pipeline #59131 passed with stage
in 4 minutes and 58 seconds
......@@ -9,7 +9,10 @@
#include <KCrash>
#include <KDBusService>
#include <KLocalizedString>
#include <kcoreaddons_version.h>
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <Kdelibs4ConfigMigrator>
#endif
#include <QApplication>
#include <QCommandLineParser>
......@@ -21,12 +24,12 @@ int main(int argc, char **argv)
app.setDesktopFileName(QStringLiteral("org.kde.contactthemeeditor"));
KCrash::initialize();
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
Kdelibs4ConfigMigrator migrate(QStringLiteral("contactthemeeditor"));
migrate.setConfigFiles(QStringList() << QStringLiteral("contactthemeeditorrc"));
migrate.setUiFiles(QStringList() << QStringLiteral("contactthemeeditorui.rc"));
migrate.migrate();
#endif
KLocalizedString::setApplicationDomain("contactthemeeditor");
KAboutData aboutData(QStringLiteral("contactthemeeditor"),
i18n("Contact Theme Editor"),
......
......@@ -11,7 +11,10 @@
#include <KCrash>
#include <KDBusService>
#include <KLocalizedString>
#include <kcoreaddons_version.h>
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <Kdelibs4ConfigMigrator>
#endif
#include <QApplication>
#include <QCommandLineParser>
......@@ -22,10 +25,12 @@ int main(int argc, char **argv)
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
app.setDesktopFileName(QStringLiteral("org.kde.headerthemeeditor"));
KCrash::initialize();
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(6, 0, 0)
Kdelibs4ConfigMigrator migrate(QStringLiteral("headerthemeeditor"));
migrate.setConfigFiles(QStringList() << QStringLiteral("headerthemeeditorrc"));
migrate.setUiFiles(QStringList() << QStringLiteral("headerthemeeditorui.rc"));
migrate.migrate();
#endif
KLocalizedString::setApplicationDomain("headerthemeeditor");
KAboutData aboutData(QStringLiteral("headerthemeeditor"),
i18n("Header Theme Editor"),
......
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