fixed a bug that made the reset button disappear on windows

This commit is contained in:
Dorian Zedler 2018-07-18 14:16:11 +02:00
parent 5eb8781a5a
commit 18dafe554a

View file

@ -125,7 +125,7 @@ Window {
//state for the start page
PropertyChanges { target: time; text: "Click start to start"; font.pixelSize: parent.height * 0.3 }
PropertyChanges { target: time_container; height: parent.height * 0.15 }
PropertyChanges { target: startButt; enabled: true; text: "start"; height: parent.height - (parent.height * 0.5); anchors.bottomMargin: parent.height * 0.5 - height * 0.5 }
PropertyChanges { target: startButt; enabled: true; text: "start"; height: parent.height - (parent.height * 0.5); anchors.bottomMargin: parent.height * 0.5 - startButt.height * 0.5 }
},
State {
name: "STARTING"
@ -145,7 +145,7 @@ Window {
name: "STOPPED"
//state when the meassuring is over
PropertyChanges { target: time; text: ( root.stoppedTime / 1000 ).toFixed(3) + " sec"; font.pixelSize: parent.height * 0.1 }
PropertyChanges { target: startButt; enabled: true; text: "reset"; height: parent.height - (parent.height * 0.8); anchors.bottomMargin: parent.height * 0.2 - height * 0.5 }
PropertyChanges { target: startButt; enabled: true; text: "reset"; height: parent.height - (parent.height * 0.8); anchors.bottomMargin: parent.height * 0.2 - startButt.height * 0.5 }
PropertyChanges { target: time_container; height: parent.height * 0.8 }
}
]