diff options
author | Ulf Hermann <[email protected]> | 2025-03-03 14:52:50 +0100 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2025-03-04 21:14:30 +0100 |
commit | cb59f99d0bfde35b8401b6249e5696341f3f6f98 (patch) | |
tree | 61e9eb2911309aeaa2dfc588c78cb7daef2691f1 /src/quicklayouts | |
parent | 18eca40c4c9e445e38a6869725f9adc89714045d (diff) |
QQuickItemView: Fix model creation
In setDelegate(), we want to create the model if it doesn't exist, not
if it's not ours. Otherwise we might overwrite a perfectly fine model
set by user code when creating a delegate.
Also warn when we cannot retain an explicitly set delegate because an
incompatible model was passed.
Pick-to: 6.9 6.8
Change-Id: I43635d4cc2fcd0f539e1cfdf742a7d941323c2fe
Reviewed-by: Shawn Rutledge <[email protected]>
Reviewed-by: Fabian Kosmale <[email protected]>
Diffstat (limited to 'src/quicklayouts')
0 files changed, 0 insertions, 0 deletions