qt5base-lts/tests/auto/gui/kernel
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
..
noqteventloop QEventDispatcherWin32: avoid livelock in a foreign event loop 2019-08-29 09:12:29 +00:00
qbackingstore Updated license headers 2016-01-21 18:55:18 +00:00
qclipboard QProcess: mark obsolete functions as deprecated 2019-01-23 18:49:12 +00:00
qcursor tst_QCursor::equality(): Silence warnings 2018-04-05 09:00:39 +00:00
qdrag Remove usages of deprecated APIs of qtbase/gui 2019-07-13 10:43:15 +02:00
qevent Updated license headers 2016-01-21 18:55:18 +00:00
qfileopenevent Fix test for sandboxed targets 2016-09-15 14:25:50 +00:00
qguiapplication Unify application palette handling between QGuiApplication and QApplication 2020-01-13 16:53:05 +01:00
qguieventdispatcher unblacklist passing tests 2019-07-08 11:01:42 +00:00
qguieventloop unblacklist passing tests 2019-07-08 11:01:42 +00:00
qguimetatype Deprecate all methods that use QMatrix 2020-01-28 04:12:25 +01:00
qguitimer Update for failures only on dev branch. Use general platform names 2019-08-19 18:22:11 +02:00
qguivariant Deprecate all methods that use QMatrix 2020-01-28 04:12:25 +01:00
qhighdpiscaling Add nullptr guard to QHighDScaling::scaleAndOrigin(QPlatformScreen *) 2019-08-11 12:01:26 +02:00
qinputmethod tst_QInputMethod check WindowActivation capability instead of platform 2018-03-12 10:51:32 +00:00
qkeyevent Remove usages of deprecated APIs from QtAlgorithms 2019-06-29 21:58:36 +02:00
qkeysequence Remove usages of deprecated APIs from QtAlgorithms 2019-06-29 21:58:36 +02:00
qmouseevent Add helper function to reset QMouseEvent localPos 2016-08-01 09:58:23 +00:00
qmouseevent_modal QPushButton: only trigger button when click occurs within the bevel rect 2020-01-28 22:26:26 +01:00
qopenglwindow Re-enable tst_QOpenGLWindow on Win32 2019-09-27 20:41:55 +02:00
qpalette Remove handling of missing Q_COMPILER_RVALUE_REFS 2019-05-01 20:24:45 +00:00
qpixelformat Updated license headers 2016-01-21 18:55:18 +00:00
qrasterwindow tests/auto/gui/kernel: Use QTRY_VERIFY instead of manual wait loops 2018-04-11 06:11:27 +00:00
qscreen Updated license headers 2016-01-21 18:55:18 +00:00
qsurfaceformat Updated license headers 2016-01-21 18:55:18 +00:00
qtouchevent Prepare for deprecating the QDesktopWidget 2019-10-15 20:09:29 +02:00
qwindow Merge remote-tracking branch 'origin/5.14' into 5.15 2020-01-28 08:09:51 +01:00
kernel.pro QHighDPI: Fix broken scaling of QPoint(F) 2019-08-01 13:20:23 +02:00