qt6-bb10/tests/auto/widgets
Richard Moe Gustavsen 7465329fe1 QAbstractButton: don't clear 'pressed' flag unless left button is released
As it stood, we would set 'pressed' to false regardless of which button that
was released. This would end up wrong if pressing the left button, and
at the same time, did a click with the right button. This would clear the
flag prematurely, and cause a release signal not to be emitted when later
releasing the left button.

tst_QAbstractButton: adding autotest

Adding tests to simulate the bug report's cases:
1) left press button
2) click right/middle key
3) move mouse out of button's boundary
4) test if the released() signal triggered properly

Taks-number: QTBUG-53244
Change-Id: Ifc0d5f52a917ac9cd2df5e86c0475abcda47e425
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2017-11-15 10:06:16 +00:00
..
dialogs QWizard: Do not remove the Next button's shortcut 2017-10-24 16:43:52 +00:00
effects Revert "QWidgetEffectSourcePrivate::draw(): Call render() when no shared painter exists" 2017-06-14 13:00:35 +00:00
gestures autotests: use QTest::createTouchDevice() 2016-06-10 13:07:17 +00:00
graphicsview testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
itemviews QHeaderView: Honor maximumSectionSize property during resizeSections() 2017-11-06 18:18:09 +00:00
kernel tst_QWidget::multipleToplevelFocusCheck(): Avoid overlapping 2017-11-06 14:39:18 +00:00
styles testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
util testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
widgets QAbstractButton: don't clear 'pressed' flag unless left button is released 2017-11-15 10:06:16 +00:00
widgets.pro