Commit aca3e6ba authored by Leander Schulten's avatar Leander Schulten
Browse files

Make items current when clicking on text in ModuleProgramView

parent 257ba6f7
......@@ -31,6 +31,10 @@ Item{
listView.currentIndex = index;
}
function makeCurrentItem(){
listView.currentIndex = index;
}
TextInputField{
id:input;
text: modelData.name
......@@ -39,6 +43,12 @@ Item{
anchors.leftMargin: 15
onTextChanged: modelData.name = text
color: parent.selected ? "white" : "black"
onFocusChanged: {
if(focus){
parent.makeCurrentItem();
forceActiveFocus("MouseFocusReason");
}
}
}
}
highlight: Rectangle{
......
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