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
Games
KDiamond
Commits
e451ff1f
Commit
e451ff1f
authored
Jan 18, 2022
by
Laurent Montel
Browse files
Kdelibs4ConfigMigrator was removed in qt6
parent
d6607b7a
Pipeline
#125093
passed with stage
in 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main.cpp
View file @
e451ff1f
...
...
@@ -16,7 +16,9 @@
#include
<KLocalizedString>
#include
<KgDifficulty>
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include
<kdelibs4configmigrator.h>
#endif
#include
<QApplication>
#include
<QCommandLineParser>
#include
<QStandardPaths>
...
...
@@ -29,10 +31,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
(
"kdiamond"
));
migrate
.
setConfigFiles
(
QStringList
()
<<
QStringLiteral
(
"kdiamondrc"
)
<<
QStringLiteral
(
"kdiamond.notifyrc"
));
migrate
.
setUiFiles
(
QStringList
()
<<
QStringLiteral
(
"kdiamondui.rc"
));
migrate
.
migrate
();
#endif
KLocalizedString
::
setApplicationDomain
(
"kdiamond"
);
KAboutData
about
(
QStringLiteral
(
"kdiamond"
),
i18nc
(
"The application's name"
,
"KDiamond"
),
...
...
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