6e1d70ae12
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> |
||
---|---|---|
.. | ||
accessible | ||
dialogs | ||
doc | ||
effects | ||
graphicsview | ||
itemviews | ||
kernel | ||
statemachine | ||
styles | ||
util | ||
widgets | ||
configure.json | ||
configure.pri | ||
Qt5WidgetsConfigExtras.cmake.in | ||
Qt5WidgetsMacros.cmake | ||
QtWidgets.dynlist | ||
qtwidgets.tracepoints | ||
widgets.pro |