diff options
author | Wang Chuan <ouchuanm@outlook.com> | 2019-06-29 23:51:06 +0800 |
---|---|---|
committer | ouchuan <ouchuanm@outlook.com> | 2019-07-11 10:25:05 +0800 |
commit | 83813e43405109478769010acf2caf85a4229501 (patch) | |
tree | 8f95317cc215a71685f27bb24e4f9528f280cc93 /src/quicktemplates2 | |
parent | 4f5da1ed1dc1d294c1c79b9f6124cedeaa45c4b6 (diff) |
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 <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2')
-rw-r--r-- | src/quicktemplates2/qquickcombobox.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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(); |