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: {
processSelection.select(index, ItemSelectionModel.ToggleCurrent);
}
Component.onCompleted: {
processes.active = Qt.binding(function() { return visible; });
Binding {
target: demo.processes
property: "active"
value: visible
}
width: parent.width
anchors.top: processFilterInput.bottom