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
6ebd3924
Commit
6ebd3924
authored
Nov 17, 2018
by
Leander Schulten
Browse files
Fix Bug where Cancel to nothing.
Fix Bug where the default value can only be in a small range
parent
3f0a8684
Changes
2
Show whitespace changes
Inline
Side-by-side
ControlView.qml
View file @
6ebd3924
...
...
@@ -131,7 +131,7 @@ ControlPanel{
Button
{
Layout.fillWidth
:
true
text
:
"
Abbrechen
"
onClicked
:
d
ialog
.
visible
=
false
onClicked
:
selectProgrammD
ialog
.
visible
=
false
}
Button
{
Layout.fillWidth
:
true
...
...
ModuleView.qml
View file @
6ebd3924
...
...
@@ -461,13 +461,6 @@ Item{
minVal
.
enabled
=
currentIndex
>=
0
&&
currentIndex
<=
3
;
maxVal
.
enabled
=
currentIndex
>=
0
&&
currentIndex
<=
3
;
defaultVal
.
enabled
=
currentIndex
>=
0
&&
currentIndex
<=
4
;
if
(
currentIndex
===
4
){
defaultVal
.
validator
.
top
=
1
;
defaultVal
.
validator
.
bottom
=
0
;
}
else
{
defaultVal
.
validator
.
top
=
2
^
31
;
defaultVal
.
validator
.
bottom
=
-
2
^
31
;
}
}
}
Label
{
...
...
@@ -499,8 +492,8 @@ Item{
id
:
defaultVal
enabled
:
type
.
currentIndex
!==
5
validator
:
IntValidator
{
top
:
dialog
.
prop
.
maxVal
ue
bottom
:
dialog
.
prop
.
minVal
ue
top
:
maxVal
.
text
bottom
:
minVal
.
text
}
}
RowLayout
{
...
...
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