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
fb5ef388
Commit
fb5ef388
authored
Feb 22, 2018
by
Leander Schulten
Browse files
Fix wrong displaying of the program running status
parent
e99c7352
Changes
1
Hide whitespace changes
Inline
Side-by-side
ProgrammControl.qml
View file @
fb5ef388
...
...
@@ -8,14 +8,6 @@ ControlItem{
id
:
item
blockWidth
:
3
blockHeight
:
1
pressed
:
controlData
?
!
controlData
.
programm
.
running
:
false
onPressedChanged
:
{
if
(
controlData
.
programm
.
running
){
play
.
opacity
=
1
;
}
else
{
play
.
opacity
=
0
;
}
}
ControlItemBlock
{
Image
{
anchors.margins
:
1
...
...
@@ -38,7 +30,11 @@ ControlItem{
MouseArea
{
anchors.fill
:
parent
onClicked
:
{
controlData
.
programm
.
running
=!
controlData
.
programm
.
running
;}
onClicked
:
{
controlData
.
programm
.
running
=
!
controlData
.
programm
.
running
;
item
.
pressed
=
controlData
.
programm
.
running
;
play
.
opacity
=
!
controlData
.
programm
.
running
;
}
}
}
...
...
Write
Preview
Supports
Markdown
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