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 Updated license headers 2016-01-21 18:55:18 +00:00
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 Updated license headers 2016-01-21 18:55:18 +00:00
qcalendarwidget Updated license headers 2016-01-21 18:55:18 +00:00
qcheckbox Updated license headers 2016-01-21 18:55:18 +00:00
qcombobox testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
qcommandlinkbutton Updated license headers 2016-01-21 18:55:18 +00:00
qdatetimeedit Convert features.wheelevent to QT_CONFIG 2017-06-28 16:15:09 +00:00
qdial Updated license headers 2016-01-21 18:55:18 +00:00
qdialogbuttonbox QDialogButtonGroup: Fix removal of deleted buttons 2017-03-02 10:42:55 +00:00
qdockwidget tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qdoublespinbox Updated license headers 2016-01-21 18:55:18 +00:00
qfocusframe Updated license headers 2016-01-21 18:55:18 +00:00
qfontcombobox Merge remote-tracking branch 'origin/5.6' into 5.7 2016-04-13 06:55:37 +02:00
qframe Updated license headers 2016-01-21 18:55:18 +00:00
qgroupbox Updated license headers 2016-01-21 18:55:18 +00:00
qkeysequenceedit Updated license headers 2016-01-21 18:55:18 +00:00
qlabel Merge remote-tracking branch 'origin/5.6' into 5.7 2016-11-15 09:58:16 +01:00
qlcdnumber Updated license headers 2016-01-21 18:55:18 +00:00
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 Blacklist flaky tst_QMdiArea test 2017-06-13 16:00:58 +00:00
qmdisubwindow Change confusing Q_DEAD_CODE_FROM_QT4_FOO define 2016-10-14 08:19:29 +00:00
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 Fix moving a hidden QOpenGLWidget to another window 2017-07-02 09:31:01 +00:00
qplaintextedit Deprecate QString::null 2017-03-12 17:41:16 +00:00
qprogressbar Updated license headers 2016-01-21 18:55:18 +00:00
qpushbutton QtWidgets: Remove Windows CE. 2016-04-07 10:24:45 +00:00
qradiobutton Updated license headers 2016-01-21 18:55:18 +00:00
qscrollarea Updated license headers 2016-01-21 18:55:18 +00:00
qscrollbar testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
qsizegrip Updated license headers 2016-01-21 18:55:18 +00:00
qslider Updated license headers 2016-01-21 18:55:18 +00:00
qspinbox Convert features.wheelevent to QT_CONFIG 2017-06-28 16:15:09 +00:00
qsplashscreen Updated license headers 2016-01-21 18:55:18 +00:00
qsplitter QSplitterHandle: Ensure a minimum grab area 2016-12-23 19:23:24 +00:00
qstackedwidget Merge remote-tracking branch 'origin/5.6' into 5.7 2016-10-08 17:15:55 +02:00
qstatusbar Updated license headers 2016-01-21 18:55:18 +00:00
qtabbar Merge remote-tracking branch 'origin/5.6' into 5.7 2016-03-21 09:02:57 +01:00
qtabwidget QtWidgets: Remove Windows CE. 2016-04-07 10:24:45 +00:00
qtextbrowser Merge remote-tracking branch 'origin/5.6' into 5.7 2016-03-24 20:37:33 +01:00
qtextedit Convert features.wheelevent to QT_CONFIG 2017-06-28 16:15:09 +00:00
qtoolbar Updated license headers 2016-01-21 18:55:18 +00:00
qtoolbox Updated license headers 2016-01-21 18:55:18 +00:00
qtoolbutton macOS: Blacklist tst_QToolButton::task176137_autoRepeatOfAction() 2017-07-03 07:50:41 +00:00
widgets.pro Widgets: Update micro focus in QLineEdit and friends 2017-02-17 17:09:50 +00:00