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
KSquares
Commits
7b6886f1
Commit
7b6886f1
authored
Jan 18, 2022
by
Laurent Montel
Browse files
Kdelibs4ConfigMigrator was removed in qt6
parent
b5205931
Pipeline
#125102
passed with stage
in 1 minute and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main.cpp
View file @
7b6886f1
...
...
@@ -11,7 +11,9 @@
#include
<KLocalizedString>
#include
<QCommandLineParser>
#include
<QCommandLineOption>
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include
<Kdelibs4ConfigMigrator>
#endif
#include
<KDBusService>
#include
"ksquareswindow.h"
...
...
@@ -27,11 +29,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
(
"ksquares"
));
migrate
.
setConfigFiles
(
QStringList
()
<<
QStringLiteral
(
"ksquaresrc"
));
migrate
.
setUiFiles
(
QStringList
()
<<
QStringLiteral
(
"ksquaresui.rc"
));
migrate
.
migrate
();
#endif
KLocalizedString
::
setApplicationDomain
(
"ksquares"
);
KAboutData
about
(
QStringLiteral
(
"ksquares"
),
i18n
(
"KSquares"
),
QStringLiteral
(
KSQUARES_VERSION_STRING
),
...
...
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