qt6-bb10/tests/auto/widgets/widgets
Volker Hilsheimer 188d739400 Sync default action when checking tool button programmatically
QAbstractButton::setChecked is not virtual, so QToolButton cannot
override to synchronize the default action's checked state. This resulted
in button and default action not being in sync when the checked state
of the button was changed programmatically, while changing the checked
state on the action kept the button in sync.

Connect to the button's own toggled signal instead to keep the state of
the default action in sync. Make it a unique connection to allow multiple
calls to setDefaultAction, which are used by QToolButton to keep the
button updated if properties of the default action change.

Add a test that confirms that button and action are synchronized both
ways, and that we only get single signal emissions when changing either
programmatically.

Fixes: QTBUG-95255
Pick-to: 6.2 6.1
Change-Id: I0e027faf1da763ef1878e46e85bfa70073c8bf82
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2021-07-22 16:17:49 +02:00
..
qabstractbutton Android: unblock passing tests 2021-04-27 21:12:50 +03:00
qabstractscrollarea Remove the qmake project files 2021-01-07 15:32:28 +01:00
qabstractslider Remove the qmake project files 2021-01-07 15:32:28 +01:00
qabstractspinbox Remove the qmake project files 2021-01-07 15:32:28 +01:00
qbuttongroup Remove the qmake project files 2021-01-07 15:32:28 +01:00
qcalendarwidget Remove the qmake project files 2021-01-07 15:32:28 +01:00
qcheckbox Remove the qmake project files 2021-01-07 15:32:28 +01:00
qcombobox tst_QComboBox: fix -Wsuggest-override 2021-07-18 13:48:45 +02:00
qcommandlinkbutton Remove the qmake project files 2021-01-07 15:32:28 +01:00
qdatetimeedit Use UTC when parsing only a date or only a time, not a date-time 2021-06-23 14:04:08 +02:00
qdial QDial: use qRound to round 2021-03-18 22:34:13 +01:00
qdialogbuttonbox Remove the qmake project files 2021-01-07 15:32:28 +01:00
qdockwidget Skip tst_QDockWidget::restoreDockWidget on Wayland 2021-03-16 08:08:43 +01:00
qdoublespinbox Add the "Territory" enumerated type for QLocale 2021-04-15 20:17:49 +08:00
qfocusframe Remove the qmake project files 2021-01-07 15:32:28 +01:00
qfontcombobox Remove the qmake project files 2021-01-07 15:32:28 +01:00
qframe Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
qgroupbox Android: unblock passing tests 2021-04-27 21:12:50 +03:00
qkeysequenceedit Remove the qmake project files 2021-01-07 15:32:28 +01:00
qlabel Replace QTextDocumentResourceProvider with a std::function 2021-03-30 08:11:27 +02:00
qlcdnumber Remove the qmake project files 2021-01-07 15:32:28 +01:00
qlineedit Fix placement of placeholder text in QLineEdits with action icons 2021-07-06 23:09:51 +02:00
qmainwindow Remove the qmake project files 2021-01-07 15:32:28 +01:00
qmdiarea QMdiArea: Fix top level window title when using DontMaximizeSubWindowOnActivation 2021-05-06 13:08:14 +02:00
qmdisubwindow Remove the qmake project files 2021-01-07 15:32:28 +01:00
qmenu QMenu/QToolBar: remove addAction() functions 2021-07-13 19:58:08 +02:00
qmenubar Fix some warnings 2021-03-31 10:51:50 +02:00
qopenglwidget Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
qplaintextedit QPlainTextEdit: adjust scroll bars when showing up 2021-02-09 20:00:59 +08:00
qprogressbar Remove the qmake project files 2021-01-07 15:32:28 +01:00
qpushbutton Android: unblock passing tests 2021-04-27 21:12:50 +03:00
qradiobutton Remove the qmake project files 2021-01-07 15:32:28 +01:00
qscrollarea Remove the qmake project files 2021-01-07 15:32:28 +01:00
qscrollbar Fix wrong variable initialization in tst_QScrollBar::task_209492 2021-05-26 03:14:52 +02:00
qsizegrip Remove the qmake project files 2021-01-07 15:32:28 +01:00
qslider Remove the qmake project files 2021-01-07 15:32:28 +01:00
qspinbox Add the "Territory" enumerated type for QLocale 2021-04-15 20:17:49 +08:00
qsplashscreen Remove the qmake project files 2021-01-07 15:32:28 +01:00
qsplitter Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstackedwidget Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstatusbar Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtabbar Fix scrolling of tab bar when the visible tab is wider than the visible space 2021-06-09 18:19:15 +02:00
qtabwidget Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtextbrowser Android: Add select and copy capability to read-only text widgets 2021-03-30 10:35:59 +02:00
qtextedit Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtoolbar Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtoolbox Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtoolbutton Sync default action when checking tool button programmatically 2021-07-22 16:17:49 +02:00
CMakeLists.txt Android: exclude tests crashing at start 2020-11-16 13:35:44 +02:00