Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
KHangMan
Commits
83b6ce70
Commit
83b6ce70
authored
Jan 23, 2022
by
Laurent Montel
Browse files
Compile against qt6
parent
4b26235d
Pipeline
#127644
failed with stage
in 1 minute and 32 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
83b6ce70
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
src/main.cpp
View file @
83b6ce70
...
...
@@ -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"
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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