Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Leander Schulten
Lichtsteuerung
Commits
aca3e6ba
Commit
aca3e6ba
authored
Nov 18, 2018
by
Leander Schulten
Browse files
Make items current when clicking on text in ModuleProgramView
parent
257ba6f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
ModuleProgramView.qml
View file @
aca3e6ba
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment