qt5base-lts/tests/auto
Ivan Solovev 662184ac68 QComboBox: emit currentIndexChanged() and currentTextChanged() when the model is cleared
QComboBox uses QPersistentModelIndex to store the current index of the
underlying model. When the model is cleared, that index is automatically
invalidated, so calling QComboBoxPrivate::setCurrentIndex(QModelIndex())
does not result in signals being emitted, because we do not detect the
index change.

This patch uses indexBeforeChange to detect such situation and emit all
necessary signals.

Fixes: QTBUG-103007
Pick-to: 6.4 6.3 6.2
Change-Id: I29326830a30a17900839e8d1737a08bd940081ea
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2022-06-16 19:29:36 +02:00
..
bic/data Add BiC data for the new way to do BiC testing 2022-05-12 13:33:41 +03:00
cmake Fix memory leaks 2022-06-15 23:58:16 +02:00
concurrent QtConcurrent: prevent conversion of ReduceOption to initial value 2022-05-20 17:11:15 +02:00
corelib Endian: Remove old special integer bitfields 2022-06-16 06:12:27 +00:00
dbus QDBusArgument: ensure std::vector isn't seen as an associative container 2022-05-17 01:27:33 +02:00
gui Work around lavapipe bug in tst_qvulkan 2022-06-16 17:29:36 +00:00
guiapplauncher
network QNetworkReply: Fix the test compilation 2022-06-10 20:57:19 +00:00
opengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
other Accessibility: don't emit focus change when reason is window activation 2022-06-16 19:29:36 +02:00
printsupport Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
shared Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
sql Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
testlib FatalSignalHandler: print the signal name on crash 2022-06-08 20:39:18 +00:00
tools Make uic generate correct C++ comments 2022-05-18 11:53:26 +02:00
widgets QComboBox: emit currentIndexChanged() and currentTextChanged() when the model is cleared 2022-06-16 19:29:36 +02:00
xml Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
CMakeLists.txt Only configure one test for wasm 2022-05-12 18:55:04 +02:00
network-settings.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00