kwin/kcmkwin/kwindecoration
David Edmundson 29179f115c 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 10:52:48 +01:00
..
declarative-plugin Restore global menu support 2017-01-11 10:21:03 +01:00
qml Avoid a crash on Kwin decoration KCM teardown 2017-02-10 10:52:48 +01:00
CMakeLists.txt [kcmkwin/deco] Drop outdated source and ui files 2014-12-09 16:14:03 +01:00
decorationmodel.cpp [kcmkwin/deco] Add configuration for decoration plugin/themes 2014-12-05 13:44:16 +01:00
decorationmodel.h [kcmkwin/deco] Add configuration for decoration plugin/themes 2014-12-05 13:44:16 +01:00
kcm.cpp Avoid a crash on Kwin decoration KCM teardown 2017-02-10 10:52:48 +01:00
kcm.h Avoid a crash on Kwin decoration KCM teardown 2017-02-10 10:52:48 +01:00
kcm.ui overhaul of deco kcm 2015-10-05 23:40:46 +02:00
kwindecoration.desktop SVN_SILENT made messages (.desktop file) - always resolve ours 2016-12-20 13:30:44 +01:00
Messages.sh extract the strings also from QML 2014-12-16 21:02:27 +01:00