Commit 1a70bd9e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Kdelibs4ConfigMigrator will be removed in qt6

parent a09bb2e3
Pipeline #125546 passed with stage
in 2 minutes and 58 seconds
......@@ -13,7 +13,9 @@
#include <KAboutData>
#include <KCrash>
#include <KDBusService>
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <Kdelibs4ConfigMigrator>
#endif
#include <KLocalizedString>
int main(int argc, char *argv[])
......@@ -23,11 +25,12 @@ int main(int argc, char *argv[])
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
KCrash::initialize();
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
Kdelibs4ConfigMigrator migrate(QLatin1String("kgpg"));
migrate.setConfigFiles({ QLatin1String("kgpgrc") });
migrate.setUiFiles({ QStringLiteral("keysmanager.rc"), QStringLiteral("kgpgeditor.rc") });
migrate.migrate();
#endif
KLocalizedString::setApplicationDomain("kgpg");
......
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