qt5base-lts/tests/auto/widgets
Stephen Kelly 351904be50 Emit the highlighted signal if the model changes.
The bug is that the connection to emit that signal can be made
obsolete if the connection is made too early and the model is replaced.
In the bug report, the connection is made by calling view() early (thereby
causing the creation of a view and a QItemSelectionModel which operates on
the built-in QItemSelectionModel, and then connecting to that
QItemSelectionModel), and then when QComboBox::setModel() is called later
the built-in view creates a new QItemSelectionModel for it. The bug was
that that new QItemSelectionModel is not connected to. This patch fixes that
bug.

Task-number: QTBUG-4454
Change-Id: Ibbdb8731f16ab071008b4a19dc2cc7ae03cebc84
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
2012-08-15 13:58:29 +02:00
..
dialogs Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
effects Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
graphicsview Speed up tst_QGraphicsView::mapToScene test 2012-08-13 09:32:21 +02:00
itemviews Make selectAll() do nothing if the mode is NoSelection. 2012-08-15 11:38:37 +02:00
kernel Fix qlayout autotest build for WinCE. 2012-08-09 13:18:08 +02:00
styles Remove some dead code wrapped in Q_WS_QWS. 2012-08-03 11:24:28 +02:00
util Revert "Move QWindowSystemInterface out of qpa." 2012-08-03 00:38:09 +02:00
widgets Emit the highlighted signal if the model changes. 2012-08-15 13:58:29 +02:00
widgets.pro Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00