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
Kollision
Commits
050a91a5
Commit
050a91a5
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
940f51f3
Pipeline
#115153
passed with stage
in 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main.cpp
View file @
050a91a5
...
...
@@ -11,7 +11,9 @@
#include
<QApplication>
#include
<KLocalizedString>
#include
<QCommandLineParser>
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include
<kdelibs4configmigrator.h>
#endif
#include
<KDBusService>
#include
"mainwindow.h"
#include
"kollision_version.h"
...
...
@@ -19,15 +21,18 @@
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
);
KLocalizedString
::
setApplicationDomain
(
"kollision"
);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
Kdelibs4ConfigMigrator
migrate
(
QStringLiteral
(
"kollision"
));
migrate
.
setConfigFiles
(
QStringList
()
<<
QStringLiteral
(
"kollisionrc"
));
migrate
.
setUiFiles
(
QStringList
()
<<
QStringLiteral
(
"kollisionui.rc"
));
migrate
.
migrate
();
#endif
KAboutData
aboutData
(
QStringLiteral
(
"kollision"
),
i18n
(
"Kollision"
),
QStringLiteral
(
KOLLISION_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