Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
KNetWalk
Commits
79d1e741
Commit
79d1e741
authored
Jan 18, 2022
by
Laurent Montel
😁
Browse files
Kdelibs4ConfigMigrator was removed in qt6
parent
53087246
Pipeline
#125097
passed with stage
in 1 minute and 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main.cpp
View file @
79d1e741
...
...
@@ -20,8 +20,9 @@
#include <KCrash>
#include <QApplication>
#include <KLocalizedString>
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include <Kdelibs4ConfigMigrator>
#endif
#include "mainwindow.h"
#include "knetwalk_version.h"
#include <KDBusService>
...
...
@@ -37,11 +38,12 @@ int main(int argc, char ** argv)
QApplication
app
(
argc
,
argv
);
KLocalizedString
::
setApplicationDomain
(
"knetwalk"
);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
Kdelibs4ConfigMigrator
migrate
(
QStringLiteral
(
"knetwalk"
));
migrate
.
setConfigFiles
(
QStringList
()
<<
QStringLiteral
(
"knetwalkrc"
));
migrate
.
setUiFiles
(
QStringList
()
<<
QStringLiteral
(
"knetwalkui.rc"
));
migrate
.
migrate
();
#endif
KAboutData
about
(
QStringLiteral
(
"knetwalk"
),
i18n
(
"KNetWalk"
),
QStringLiteral
(
KNETWALK_VERSION_STRING
),
i18n
(
"KNetWalk, a game for system administrators."
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment