Skip to content

Commit

Permalink
MainMenu: Allow out of range inputs in debug mode
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
  • Loading branch information
patrickelectric committed Jul 3, 2018
1 parent 82446b7 commit cedae6f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion qml/MainMenu.qml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,11 @@ Item {
PingTextField {
id: speedOfSound
text: ""
validator: DoubleValidator{bottom: 1400; top: 1600;} // m/s
validator: DoubleValidator {
// Values in m/s
bottom: SettingsManager.debugMode ? 0 : 1400
top: SettingsManager.debugMode ? 1e5 : 1600
}
Layout.columnSpan: 2
Layout.fillWidth: true
onEditingFinished: {
Expand Down

0 comments on commit cedae6f

Please sign in to comment.