diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2018-05-07 11:45:09 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2018-05-11 09:40:11 +0000 |
commit | 54da8f6c86aa9cba99bcedcd58b40db938b5af9e (patch) | |
tree | af3569a9da0063abcdd136e18702ea8042ee7f02 /src/quick/items/qquickloader_p_p.h | |
parent | 2dd213c34b5ba90cd811fada5b0c4494171abe46 (diff) |
Fix JS ownership of model and delegate properties in QtQuick item views
When assigning a JS owned model or delegate to an item view, we must
ensure that they stay alive as long as the item view. This happens
easily for example when doing something like
delegate: Qt.createComponent(...)
This patch takes the minimally invasive approach by changing the QObject
parent of such objects.
Task-number: QTBUG-50319
Task-number: QTBUG-51620
Change-Id: Ie6384b8dd93dcdc62d49f64b38173b3fc4ffd3b3
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/quick/items/qquickloader_p_p.h')
0 files changed, 0 insertions, 0 deletions