diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2019-09-04 14:19:48 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2019-10-01 17:07:32 +0200 |
commit | a392194a575653dff3cd21227e6a1a2902b8399f (patch) | |
tree | e6547b0633c99a069ffba7eb7527ca162a1b0de1 /src/imports/controls/material/qquickmaterialbusyindicator_p.h | |
parent | 88b6b70c58b4c0dbd9d8217e19b9046095168277 (diff) |
ComboBox: fix performance regressionv5.14.0-beta1
f4623123 introduced a performance regression by calling
delegateModel->object() twice:
if (componentComplete) {
updateCurrentText();
updateCurrentValue();
}
We can avoid this by introducing versions of these functions that take
the delegate model object as a parameter in order to cache it between
calls.
Change-Id: I5f9041a8ff00b53e04d759f38677bd87c748f8d1
Fixes: QTBUG-76029
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/material/qquickmaterialbusyindicator_p.h')
0 files changed, 0 insertions, 0 deletions