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
Plasma
Oxygen
Commits
ee92c9a6
Commit
ee92c9a6
authored
Apr 24, 2022
by
Laurent Montel
Browse files
Qt::AA_UseHighDpiPixmaps is enabled by default in qt6
parent
4709cec4
Pipeline
#167934
failed with stage
in 1 minute and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
kstyle/demo/main.cpp
View file @
ee92c9a6
...
...
@@ -27,12 +27,14 @@ namespace Oxygen
QApplication
app
(
argc
,
argv
);
QCommandLineParser
commandLine
;
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QCommandLineOption
enableHighDpi
(
"highdpi"
,
"Enable High DPI pixmaps"
);
commandLine
.
addOption
(
enableHighDpi
);
#endif
commandLine
.
process
(
app
);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
app
.
setAttribute
(
Qt
::
AA_UseHighDpiPixmaps
,
commandLine
.
isSet
(
enableHighDpi
)
);
#endif
app
.
setApplicationName
(
i18n
(
"Oxygen Demo"
)
);
app
.
setWindowIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"oxygen"
)
)
);
DemoDialog
dialog
;
...
...
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