path: root/examples/widgets/itemviews/spinboxdelegate
diff options
authorSona Kurazyan <>2021-07-26 17:03:37 +0200
committerQt Cherry-pick Bot <>2021-07-27 18:36:28 +0000
commit8e6b9d802f165af36a935c34b46796ac97fe5d1d (patch)
tree46696d321b76555b4aed863237d6582b5796a0a9 /examples/widgets/itemviews/spinboxdelegate
parent28ce15041c4a9bc2d03f657b35ac1edc692a79f4 (diff)
Don't report results when the results list is empty6.2
When inserting items into the result store, a ResultItem is created, which stores a pointer to the results list and their size. If the size of the ResultItem is set to 0, it means that a single result is stored. In case of trying to report results via an empty list, the size is 0, so result store treats it as a single result. Added checks before storing the results to make sure that the result list isn't empty. Note that empty lists are allowed in some cases for the filter mode, because ResultStoreBase::addResults() knows how to handle those cases correctly. Task-number: QTBUG-80957 Change-Id: I399af4c3eef6adf82fea5df031fe9a9075006b1f Reviewed-by: MÃ¥rten Nordheim <> (cherry picked from commit 08de1fb28153d8170b592796a84032897afa4206) Reviewed-by: Qt Cherry-pick Bot <>
Diffstat (limited to 'examples/widgets/itemviews/spinboxdelegate')
0 files changed, 0 insertions, 0 deletions