Commit 6ebd3924 authored by Leander Schulten's avatar 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
...@@ -131,7 +131,7 @@ ControlPanel{ ...@@ -131,7 +131,7 @@ ControlPanel{
Button{ Button{
Layout.fillWidth: true Layout.fillWidth: true
text:"Abbrechen" text:"Abbrechen"
onClicked: dialog.visible = false onClicked: selectProgrammDialog.visible = false
} }
Button{ Button{
Layout.fillWidth: true Layout.fillWidth: true
......
...@@ -461,13 +461,6 @@ Item{ ...@@ -461,13 +461,6 @@ Item{
minVal.enabled = currentIndex>=0 && currentIndex <=3; minVal.enabled = currentIndex>=0 && currentIndex <=3;
maxVal.enabled = currentIndex>=0 && currentIndex <=3; maxVal.enabled = currentIndex>=0 && currentIndex <=3;
defaultVal.enabled = currentIndex>=0 && currentIndex <=4; 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{ Label{
...@@ -499,8 +492,8 @@ Item{ ...@@ -499,8 +492,8 @@ Item{
id:defaultVal id:defaultVal
enabled: type.currentIndex !== 5 enabled: type.currentIndex !== 5
validator: IntValidator{ validator: IntValidator{
top: dialog.prop.maxValue top: maxVal.text
bottom: dialog.prop.minValue bottom: minVal.text
} }
} }
RowLayout{ RowLayout{
......
Supports Markdown
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