delaying the loading of the sliding panel seems to avoid some crashes

FIXME
This commit is contained in:
Marco Martin 2015-09-16 13:35:55 +02:00
parent 28f98ce3ac
commit 5a9aa3c440

View file

@ -31,9 +31,18 @@ PlasmaCore.ColorScope {
height: 480
colorGroup: PlasmaCore.Theme.ComplementaryColorGroup
TaskSwitcher {
id: taskSwitcher
property QtObject taskSwitcher: taskSwitcherLoader.item ? taskSwitcherLoader.item : null
Loader {
id: taskSwitcherLoader
}
//FIXME: why it crashes on startup if TaskSwitcher is loaded immediately?
Timer {
running: true
interval: 200
onTriggered: taskSwitcherLoader.source = Qt.resolvedUrl("TaskSwitcher.qml")
}
MouseArea {
id: mainMouseArea
anchors.fill: parent