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
KJumpingCube
Commits
c8b75e1b
Commit
c8b75e1b
authored
Dec 28, 2021
by
Laurent Montel
Browse files
Migration code will be removed in qt6 + AA_UseHighDpiPixmaps is enabled by default in qt6
parent
7bef7d97
Pipeline
#115154
passed with stage
in 1 minute and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main.cpp
View file @
c8b75e1b
...
...
@@ -15,20 +15,25 @@
#include
<KLocalizedString>
#include
<KDBusService>
#include
<QCommandLineParser>
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include
<Kdelibs4ConfigMigrator>
#endif
int
main
(
int
argc
,
char
*
argv
[])
{
// Fixes blurry icons with fractional scaling
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QGuiApplication
::
setAttribute
(
Qt
::
AA_UseHighDpiPixmaps
);
#endif
QApplication
app
(
argc
,
argv
);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
Kdelibs4ConfigMigrator
migrate
(
QStringLiteral
(
"kjumpingcube"
));
migrate
.
setConfigFiles
(
QStringList
()
<<
QStringLiteral
(
"kjumpingcuberc"
));
migrate
.
setUiFiles
(
QStringList
()
<<
QStringLiteral
(
"kjumpingcubeui.rc"
));
migrate
.
migrate
();
#endif
KLocalizedString
::
setApplicationDomain
(
"kjumpingcube"
);
KAboutData
aboutData
(
QStringLiteral
(
"kjumpingcube"
),
i18n
(
"KJumpingCube"
),
...
...
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