• Tomaz Canabrava's avatar
    Only accept numbers in FactTextEdit · 8f137cdc
    Tomaz Canabrava authored
    All facts are numeric, atm. this means that the input should only
    accept numbers. it already had the     inputMethodHints:   Qt.ImhFormattedNumbersOnly
    option, but for some reason it still accepted letters and symbols.
    by adding a     validator: DoubleValidator {} we limit the characters
    to numbers only - and if the value is a integer, it will still work.
    
    Tested by adding waypoints on the map & messing with the GPS coordinates.
    Signed-off-by: 's avatarTomaz Canabrava <tomaz.canabrava@intel.com>
    8f137cdc
Name
Last commit
Last update
..
FactControls Loading commit data...
Fact.cc Loading commit data...
Fact.h Loading commit data...
FactGroup.cc Loading commit data...
FactGroup.h Loading commit data...
FactMetaData.cc Loading commit data...
FactMetaData.h Loading commit data...
FactSystem.cc Loading commit data...
FactSystem.h Loading commit data...
FactSystemTest.qml Loading commit data...
FactSystemTestBase.cc Loading commit data...
FactSystemTestBase.h Loading commit data...
FactSystemTestGeneric.cc Loading commit data...
FactSystemTestGeneric.h Loading commit data...
FactSystemTestPX4.cc Loading commit data...
FactSystemTestPX4.h Loading commit data...
FactValidator.cc Loading commit data...
FactValidator.h Loading commit data...
ParameterLoader.cc Loading commit data...
ParameterLoader.h Loading commit data...
SettingsFact.cc Loading commit data...
SettingsFact.h Loading commit data...