Fix binding to process model

master
Jos van den Oever 2017-08-31 22:50:51 +02:00
parent 56856d081b
commit 2f0aa11ee1
1 changed files with 4 additions and 2 deletions

View File

@ -123,8 +123,10 @@ ApplicationWindow {
onClicked: { onClicked: {
processSelection.select(index, ItemSelectionModel.ToggleCurrent); processSelection.select(index, ItemSelectionModel.ToggleCurrent);
} }
Component.onCompleted: { Binding {
processes.active = Qt.binding(function() { return visible; }); target: demo.processes
property: "active"
value: visible
} }
width: parent.width width: parent.width
anchors.top: processFilterInput.bottom anchors.top: processFilterInput.bottom