Commit 83b6ce70 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Compile against qt6

parent 4b26235d
Pipeline #127644 failed with stage
in 1 minute and 32 seconds
include:
- https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/linux.yml
- https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/freebsd.yml
- https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/linux-qt6.yml
......@@ -24,7 +24,9 @@
#include <KAboutData>
#include <KLocalizedString>
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <Kdelibs4ConfigMigrator>
#endif
#include <KCrash>
#include <QApplication>
......@@ -37,12 +39,13 @@
int main(int argc, char **argv)
{
QApplication app(argc, argv);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QStringList configFiles;
configFiles << QStringLiteral("khangmanrc");
Kdelibs4ConfigMigrator migrator(QStringLiteral("khangman"));
migrator.setConfigFiles(configFiles);
migrator.migrate();
#endif
KLocalizedString::setApplicationDomain("khangman");
QApplication::setApplicationName(QStringLiteral("khangman"));
......
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