qt6-bb10/tests/auto/widgets/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
..
qabstractbutton QAbstractButton: don't clear 'pressed' flag unless left button is released 2017-11-15 10:06:16 +00:00
qabstractscrollarea
qabstractslider testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
qabstractspinbox testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
qbuttongroup
qcalendarwidget
qcheckbox
qcombobox testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
qcommandlinkbutton
qdatetimeedit
qdial
qdialogbuttonbox
qdockwidget
qdoublespinbox
qfocusframe
qfontcombobox
qframe
qgroupbox
qkeysequenceedit
qlabel
qlcdnumber
qlineedit testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
qmainwindow Convert features.tabbar to QT_[REQUIRE_]CONFIG 2017-07-25 11:24:02 +00:00
qmdiarea
qmdisubwindow
qmenu testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
qmenubar testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
qopenglwidget
qplaintextedit
qprogressbar
qpushbutton
qradiobutton
qscrollarea
qscrollbar testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
qsizegrip
qslider
qspinbox
qsplashscreen
qsplitter
qstackedwidget
qstatusbar
qtabbar
qtabwidget
qtextbrowser
qtextedit
qtoolbar
qtoolbox
qtoolbutton macOS: Blacklist tst_QToolButton::task176137_autoRepeatOfAction() 2017-07-03 07:50:41 +00:00
widgets.pro