From 83813e43405109478769010acf2caf85a4229501 Mon Sep 17 00:00:00 2001 From: Wang Chuan Date: Sat, 29 Jun 2019 23:51:06 +0800 Subject: QQuickComboBox: emit countChanged signal when model is updated [ChangeLog][QtQuick][QQuickComboBox] countChanged signal now will be emitted when a new model is set to the ComboBox Fixes: QTBUG-75972 Change-Id: Ic26718453ba06ba284ac5903fc6f55ddf3523331 Reviewed-by: Mitch Curtis --- src/quicktemplates2/qquickcombobox.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/quicktemplates2') diff --git a/src/quicktemplates2/qquickcombobox.cpp b/src/quicktemplates2/qquickcombobox.cpp index 78ec7ef8..0fa6298f 100644 --- a/src/quicktemplates2/qquickcombobox.cpp +++ b/src/quicktemplates2/qquickcombobox.cpp @@ -828,6 +828,7 @@ void QQuickComboBox::setModel(const QVariant& m) d->model = model; d->createDelegateModel(); + emit countChanged(); if (isComponentComplete()) { setCurrentIndex(count() > 0 ? 0 : -1); d->updateCurrentText(); -- cgit v1.2.3