diff options
author | Doris Verria <doris.verria@qt.io> | 2020-11-17 15:42:55 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2020-12-21 15:38:07 +0000 |
commit | 701934d39f50892273b733b55040b550568ca635 (patch) | |
tree | ac2f9212a6adfef51e555985fb9d9937cb6edded /tests | |
parent | 3f2b9af98e028bf665a78177cc2d3dc41ab1e696 (diff) |
Make QPushButton on macOS use QFocusFrame to fix alignment problems
Alignment problems occur for pushbuttons because they appear smaller then their
actual widget geometry, which is used for their alignment in layouts. To fix,
shift the pushbutton's rect to the left, adjust SE_PushButtonLayoutItem
accordingly and use QFocusFrame to render the focus frame ring outside
the widget's paintable area.
Fixes: QTBUG-89133
Fixes: QTBUG-81452
Change-Id: Iee885a4fb3674d966e5ff3b5c04a0845521b2d72
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit c6379e34993370e7e2208b51be384b738ce35817)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions