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
KMines
Commits
80cc50e4
Commit
80cc50e4
authored
Jan 18, 2022
by
Laurent Montel
Browse files
Kdelibs4ConfigMigrator was removed in qt6
parent
0bbf4a64
Pipeline
#125094
passed with stage
in 1 minute and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main.cpp
View file @
80cc50e4
...
...
@@ -10,7 +10,9 @@
// KF
#include
<KAboutData>
#include
<KCrash>
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include
<Kdelibs4ConfigMigrator>
#endif
#include
<KLocalizedString>
#include
<KDBusService>
#include
<KSharedConfig>
...
...
@@ -21,10 +23,12 @@
int
main
(
int
argc
,
char
**
argv
)
{
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
// Fixes blurry icons with fractional scaling
QGuiApplication
::
setAttribute
(
Qt
::
AA_UseHighDpiPixmaps
);
#endif
QApplication
app
(
argc
,
argv
);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
Kdelibs4ConfigMigrator
migrate
(
QStringLiteral
(
"kmines"
));
migrate
.
setConfigFiles
(
QStringList
()
<<
QStringLiteral
(
"kminesrc"
));
migrate
.
setUiFiles
(
QStringList
()
<<
QStringLiteral
(
"kminesui.rc"
));
...
...
@@ -33,6 +37,7 @@ int main(int argc, char **argv)
// update the configuration cache
KSharedConfig
::
openConfig
()
->
reparseConfiguration
();
}
#endif
KLocalizedString
::
setApplicationDomain
(
"kmines"
);
KAboutData
aboutData
(
QStringLiteral
(
"kmines"
),
i18n
(
"KMines"
),
...
...
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