Commit 055c9ca1 authored by Leander Schulten's avatar Leander Schulten
Browse files

Make the Name of a ProgrammBlock in the list changeable

parent 838aae2b
......@@ -24,12 +24,22 @@ Item{
id:listView
delegate: ItemDelegate{
property var itemData : modelData
property var selected: ListView.isCurrentItem
width: parent.width
height: 60
text: modelData.name
onClicked: {
listView.currentIndex = index;
}
TextInputField{
id:input;
text: modelData.name
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.leftMargin: 15
onTextChanged: modelData.name = text
color: parent.selected ? "white" : "black"
}
}
highlight: Rectangle{
color: "blue"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment