kwin/kcmkwin/kwindecoration/qml
David Edmundson 70d2fb2378 Avoid a crash on Kwin decoration KCM teardown
Summary:
As described in https://bugreports.qt.io/browse/QTBUG-57714  exposing a
QWidget as a context item to QtQuick can crash. Especially as the
engine's context property gets deleted whilst deleting the parent item.

This patch reworks the code so that the models are exposed to QML
directly rather than going through a QWidget.

CCBUG: 373628

Test Plan:
Pressing back whilst in the decoration KCM used to crash every time, now it doesn't.
I still have the buttons.

Reviewers: #plasma, graesslin

Reviewed By: #plasma, graesslin

Subscribers: graesslin, cfeck, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D4533
2017-02-10 14:01:09 +01:00
..
ButtonGroup.qml [kcmkwin/deco] Delay deleting of PreviewBridge 2015-10-20 14:33:15 +02:00
Buttons.qml Avoid a crash on Kwin decoration KCM teardown 2017-02-10 14:01:09 +01:00
main.qml
Previews.qml Align configure button consistently across delegates 2016-11-28 09:24:55 +00:00