qt5base-lts/tests/auto/widgets
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
..
dialogs Merge remote-tracking branch 'origin/5.14' into 5.15 2020-01-28 08:09:51 +01:00
effects tst_qgraphicseffect: Wait for exposed instead of active 2019-10-15 20:39:32 +02:00
graphicsview Deprecate all methods that use QMatrix 2020-01-28 04:12:25 +01:00
itemviews Merge remote-tracking branch 'origin/5.14' into 5.15 2020-01-28 08:09:51 +01:00
kernel Merge remote-tracking branch 'origin/5.14' into 5.15 2020-01-28 08:09:51 +01:00
styles Merge remote-tracking branch 'origin/5.14' into 5.15 2020-01-15 01:00:39 +01:00
util Merge remote-tracking branch 'origin/5.14' into 5.15 2020-01-28 08:09:51 +01:00
widgets QPushButton: only trigger button when click occurs within the bevel rect 2020-01-28 22:26:26 +01:00
widgets.pro Move QGestureRecognizer test to widgets/kernel 2017-06-02 18:36:11 +00:00