Go to file
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
bin
config.tests
dist
doc Ignore Q_DECL_NOEXCEPT in qdoc 2012-08-15 11:38:37 +02:00
examples Doc: Fix broken return codes for a few examples 2012-08-15 11:38:37 +02:00
lib
mkspecs
qmake
src Emit the highlighted signal if the model changes. 2012-08-15 13:58:29 +02:00
tests Emit the highlighted signal if the model changes. 2012-08-15 13:58:29 +02:00
tools
util
.gitattributes
.gitignore
.tag
configure
configure.bat
header.BSD
header.FDL
header.LGPL
header.LGPL-ONLY
INSTALL
LGPL_EXCEPTION.txt
LICENSE.FDL
LICENSE.GPL
LICENSE.LGPL
LICENSE.PREVIEW.COMMERCIAL
qtbase.pro
sync.profile