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
055c9ca1
Commit
055c9ca1
authored
Nov 17, 2018
by
Leander Schulten
Browse files
Make the Name of a ProgrammBlock in the list changeable
parent
838aae2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ModuleProgramView.qml
View file @
055c9ca1
...
...
@@ -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
"
...
...
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