|
|
|
@ -15,6 +15,7 @@ QGCTextField {
@@ -15,6 +15,7 @@ QGCTextField {
|
|
|
|
|
unitsLabel: fact ? fact.units : "" |
|
|
|
|
showUnits: true |
|
|
|
|
showHelp: true |
|
|
|
|
numericValuesOnly: fact && !fact.typeIsString |
|
|
|
|
|
|
|
|
|
signal updated() |
|
|
|
|
|
|
|
|
@ -22,10 +23,6 @@ QGCTextField {
@@ -22,10 +23,6 @@ QGCTextField {
|
|
|
|
|
|
|
|
|
|
property string _validateString |
|
|
|
|
|
|
|
|
|
inputMethodHints: ((fact && fact.typeIsString) || ScreenTools.isiOS) ? |
|
|
|
|
Qt.ImhNone : // iOS numeric keyboard has no done button, we can't use it |
|
|
|
|
Qt.ImhFormattedNumbersOnly // Forces use of virtual numeric keyboard |
|
|
|
|
|
|
|
|
|
onEditingFinished: { |
|
|
|
|
var errorString = fact.validate(text, false /* convertOnly */) |
|
|
|
|
if (errorString === "") { |
|
|
|
|