summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io/qfile
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-06-16 23:28:49 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-07-09 17:03:39 +0200
commit637d5dd6b1f3a6974c3447042d48c71ef0bd695a (patch)
tree54cdfa25ee77589b641d23953d6483c2e3a97fc2 /tests/auto/corelib/io/qfile
parentcd0528143ea9d7a3a3cd22f6a588aad0817ef91f (diff)
macOS: fix drawing of pushbuttons of non-standard size
Cocoa renders the bevel of a push button always in the default height of 32 pixels. We handled the case that the button is larger than that by switching to "squared" mode, but buttons that are smaller than that got rendered incorrectly, with the bevel being clipped. Fix this by always rendering buttons in "squared" mode when the height of the widget is not the same as the standard. Adjust the default height for "mini" push buttons based on visual testing. Make the equivalent adjustment to the focus frame logic and general positioning so that buttons and frames are centered compared to other controls. As a drive-by, get rid of expensive QObject::inherits calls, and replace with qobject_cast. The headers for all the relevant widget types are already included. Fixes: QTBUG-85972 Pick-to: 6.2 Change-Id: I4ad66fac2313fbee385c1eadcc243f69c9cace70 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'tests/auto/corelib/io/qfile')
0 files changed, 0 insertions, 0 deletions