qt5base-lts/tests/auto/gui
Volker Hilsheimer 6e1d70ae12 QPushButton: only trigger button when click occurs within the bevel rect
On the mac, the push button's bevel doesn't cover the entire widget
rectangle, but is smaller to leave space for focus frame, shadow, and
in general to meet style guidelines. Without this change, a click
anywhere inside the widget would activate the button.

QAbstractButton::hitButton can be reimplemented to limit the area in
which the button is triggered. However, getting the rectangle also
requires an addition to QStyle, so that we can query
QStyle::subElementRect for the actual area the button's bevel covers.

As a side effect, tests that use QPushButton and assume that it
responds to clicks at position 0,0 have to be fixed so that they
don't fail on mac.

Change-Id: I01b60a763bccf39090aee5b2369af300f922d226
Fixes: QTBUG-81452
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2020-01-28 22:26:26 +01:00
..
image Deprecate all methods that use QMatrix 2020-01-28 04:12:25 +01:00
itemmodels QStandardItem/QStandardItemModel tests: cleanup 2020-01-13 17:01:00 +01:00
kernel QPushButton: only trigger button when click occurs within the bevel rect 2020-01-28 22:26:26 +01:00
math3d Deprecate all methods that use QMatrix 2020-01-28 04:12:25 +01:00
painting Deprecate all methods that use QMatrix 2020-01-28 04:12:25 +01:00
qopengl unblacklist passing tests 2019-07-08 11:01:42 +00:00
qopenglconfig Deprecate conversion functions between QList and QSet 2019-05-07 14:15:44 +00:00
qvulkan Merge remote-tracking branch 'origin/5.10' into dev 2017-10-17 10:34:24 +02:00
rhi Regenerate qsb files for auto and manual tests 2020-01-22 22:47:04 +01:00
text Merge remote-tracking branch 'origin/5.14' into 5.15 2020-01-15 01:00:39 +01:00
util QDoubleValidator: Fix thousand separator handling 2019-12-05 11:30:24 +01:00
gui.pro Introduce the Qt graphics abstraction as private QtGui helpers 2019-06-13 10:13:45 +02:00