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
PIM
Akonadi Calendar
Commits
b8f12d57
Commit
b8f12d57
authored
Oct 14, 2022
by
Moody Liu
Committed by
Laurent Montel
Nov 10, 2022
Browse files
kalendarac: set AA_EnableHighDpiScaling attribute before constructing QGuiApplication
(cherry picked from commit
cb8e88e6
)
parent
50e6e1a4
Pipeline
#265966
skipped
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
reminder-daemon/kalendaracmain.cpp
View file @
b8f12d57
...
...
@@ -12,10 +12,13 @@
int
main
(
int
argc
,
char
**
argv
)
{
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
// set this attribute before contructing QGuiApplication
QCoreApplication
::
setAttribute
(
Qt
::
AA_EnableHighDpiScaling
);
#endif
QGuiApplication
app
(
argc
,
argv
);
app
.
setQuitOnLastWindowClosed
(
false
);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QCoreApplication
::
setAttribute
(
Qt
::
AA_EnableHighDpiScaling
);
app
.
setAttribute
(
Qt
::
AA_UseHighDpiPixmaps
,
true
);
#endif
...
...
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