summaryrefslogtreecommitdiff
path: root/qtquickcontrols.pro
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2018-09-26 15:47:44 +0200
committerUlf Hermann <ulf.hermann@qt.io>2018-09-27 12:34:05 +0000
commitb854772676ff2b0e610b522279c997618496c050 (patch)
treefd9b931f9ac3ea822721d26e7b1108fc48d052a0 /qtquickcontrols.pro
parentcb029a36279a1b7d47ec4c58c7916c9b63615b57 (diff)
downloadqtquickcontrols-b854772676ff2b0e610b522279c997618496c050.tar.gz
Menu: Provide a safe clear() function
The menu items are generally owned by QML. Therefore we cannot delete them on clear(). The containers, however, are owned by the menu, and we have to delete them also when clearing the QQmlListProperty for a proxy menu. The QQmlListProperty, when clearing the items for a non-proxy menu, will still delete them, as that seems to be the way QML expresses its desire to get rid of them. Fixes: QTBUG-64464 Change-Id: Ied0b86496b289c2e2a83f3d6fd53d7045929beb0 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'qtquickcontrols.pro')
0 files changed, 0 insertions, 0 deletions