diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-10-22 22:58:54 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-10-27 20:08:33 +0200 |
commit | 0c0892a3e20aa1fa79e3561de9b8e1fa8820f062 (patch) | |
tree | aced654fe9ebd6775e89892752f721228fddd434 /tests/auto/corelib/io/qprocess/testSoftExit/main_win.cpp | |
parent | 05532a09684990ebfabf1fa60fcdb7751afb8282 (diff) |
Fusion: Consistent width calculation and rendering of menu items
The width calculation lacked the addition of the windowItemFrame
constant, which was added in the rendering code. This resulted in
ellision for long items.
To make the code easier to follow, const'ify, rename, and reorder some
local variables, and use constants from QFusionStylePrivate instead of
(now obsolete and removed) constants copied from the Windows style.
Break long lines as a drive-by.
Fixes: QTBUG-94481
Pick-to: 6.2
Change-Id: I6d3e9d0feebee58fc70beaaf29236b8473242083
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'tests/auto/corelib/io/qprocess/testSoftExit/main_win.cpp')
0 files changed, 0 insertions, 0 deletions