qt5base-lts/src/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
..
accessible QLabel: Allow pixmap() and picture() to return by-value 2020-01-26 01:19:38 +08:00
dialogs Doc/QtWidgets: replace some 0 with \nullptr 2020-01-26 17:51:59 +01:00
doc Merge "Merge remote-tracking branch 'origin/5.14' into 5.15" 2020-01-28 16:02:04 +01:00
effects Remove some uses of QImage::setAlphaChannel 2019-12-19 21:24:39 +01:00
graphicsview Deprecate all methods that use QMatrix 2020-01-28 04:12:25 +01:00
itemviews QStringList: use local storage in removeDuplicates() 2020-01-26 08:11:58 +00:00
kernel Merge remote-tracking branch 'origin/5.14' into 5.15 2020-01-28 08:09:51 +01:00
statemachine Tidy nullptr usage 2019-12-06 12:13:20 +01:00
styles QPushButton: only trigger button when click occurs within the bevel rect 2020-01-28 22:26:26 +01:00
util Doc/QtWidgets: replace some 0 with \nullptr 2020-01-26 17:51:59 +01:00
widgets QPushButton: only trigger button when click occurs within the bevel rect 2020-01-28 22:26:26 +01:00
configure.json Goodbye showYellowThing 2019-08-22 09:43:48 +02:00
configure.pri
Qt5WidgetsConfigExtras.cmake.in CMake: Add Qt6 forward compatible CMake API and targets 2020-01-25 18:10:26 +01:00
Qt5WidgetsMacros.cmake CMake: Add Qt6 forward compatible CMake API and targets 2020-01-25 18:10:26 +01:00
QtWidgets.dynlist
qtwidgets.tracepoints Reduce amount of tracepoints required for event tracking 2019-05-02 14:15:58 +00:00
widgets.pro Make sure the metatypes are installed in prefix builds 2019-11-13 15:26:03 +00:00