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

Fix some qt6 compile error

parent 6d297f73
Pipeline #179495 passed with stage
in 57 seconds
......@@ -12,6 +12,7 @@
#include <KgDifficulty>
#include <QStandardPaths>
#include <QFile>
const int Game::FPS = 40;
int Game::s_bonusDuration;
......
......@@ -13,8 +13,9 @@
#include <KLocalizedString>
#include <QApplication>
#include <QCommandLineParser>
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <kdelibs4configmigrator.h>
#endif
int main(int argc, char **argv)
{
// Fixes blurry icons with fractional scaling
......@@ -22,11 +23,12 @@ int main(int argc, char **argv)
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
#endif
QApplication app(argc, argv);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
Kdelibs4ConfigMigrator migrate(QStringLiteral("kapman"));
migrate.setConfigFiles(QStringList() << QStringLiteral("kapmanrc"));
migrate.setUiFiles(QStringList() << QStringLiteral("kapmanui.rc"));
migrate.migrate();
#endif
KLocalizedString::setApplicationDomain("kapman");
// About Kapman
KAboutData about(QStringLiteral("kapman"),
......
Supports Markdown
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