diff options
| author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2024-12-24 14:16:00 +0100 |
|---|---|---|
| committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2024-12-29 18:03:37 +0100 |
| commit | 785fb89e0aafc25a435d28ff05bf0dc05385b372 (patch) | |
| tree | 2f634febae1d13db3749992dd9f3a51df0ca84a9 /src/tools/uic/cpp/cppwriteinitialization.cpp | |
| parent | aa1f2064801b39a26a718703817e197a3e31447e (diff) | |
QCommandLinkButton: fix drawing high-dpi icons
QCommandLinkButton was using QIcon::pixmap() without specifying the
current device pixel ratio. Switch to QIcon::paint() to not have to
fiddle around with the dpr at all here.
As a drive-by remove a useless QPainter::save/restore call.
Pick-to: 6.9 6.8
Change-Id: I7e2492a09b28cb8a4f4cc60454733e0054fe1e9b
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/tools/uic/cpp/cppwriteinitialization.cpp')
0 files changed, 0 insertions, 0 deletions
