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
KNavalBattle
Commits
9f489d67
Commit
9f489d67
authored
Jan 21, 2022
by
Laurent Montel
😁
Browse files
it's removed in qt6
parent
f3bf9240
Pipeline
#126437
passed with stage
in 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main.cpp
View file @
9f489d67
...
...
@@ -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
),
...
...
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