Commit 9f489d67 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

it's removed in qt6

parent f3bf9240
Pipeline #126437 passed with stage
in 45 seconds
......@@ -10,8 +10,9 @@
#include <KCrash>
#include <KLocalizedString>
#include <KDBusService>
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <Kdelibs4ConfigMigrator>
#endif
#include <QApplication>
#include <QUrl>
#include <QCommandLineParser>
......@@ -31,11 +32,12 @@ int main(int argc, char** argv)
#endif
QApplication app(argc, argv);
KLocalizedString::setApplicationDomain("knavalbattle");
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
Kdelibs4ConfigMigrator migrate(QStringLiteral("knavalbattle"));
migrate.setConfigFiles(QStringList() << QStringLiteral("knavalbattlerc"));
migrate.setUiFiles(QStringList() << QStringLiteral("knavalbattleui.rc"));
migrate.migrate();
#endif
KAboutData aboutData(QStringLiteral("knavalbattle"), i18n("Naval Battle"),
QStringLiteral(KNAVALBATTLE_VERSION_STRING),
......
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