Gracefully replace outputModel

Authored by broulik on Oct 17 2019, 2:26 PM.

Description

Gracefully replace outputModel

This patch has it signal the disappearance of the outputModel and only then deletes it.
This gives the QML side of things a chance to clean up, specifically QQuickComboBox stores the model in a QVariant
and crashes if you just delete its backing model and then assign a new one.
Ideally the model instance itself would never be replaced but just reset and populated with new outputs.

Differential Revision: https://phabricator.kde.org/D24735

Details

Committed
broulikOct 17 2019, 2:26 PM
Differential Revision
D24735: Gracefully replace outputModel
Parents
R104:7811411c6425: [KCM] Add output selector ComboBox
Branches
Unknown
Tags
Unknown