• 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
android Loading commit data...
debian Loading commit data...
deploy Loading commit data...
doc Loading commit data...
flightgear Loading commit data...
ios Loading commit data...
libs Loading commit data...
resources Loading commit data...
src Loading commit data...
test Loading commit data...
tools Loading commit data...
.appveyor.yml Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.travis.yml Loading commit data...
.vagrantconfig.yml Loading commit data...
.ycm_extra_conf.py Loading commit data...
CONTRIBUTING.md Loading commit data...
CodingStyle.cc Loading commit data...
CodingStyle.h Loading commit data...
CodingStyle.qml Loading commit data...
Custom-Info.plist Loading commit data...
QGCCommon.pri Loading commit data...
QGCExternalLibs.pri Loading commit data...
QGCInstaller.pri Loading commit data...
QGCSetup.pri Loading commit data...
README.md Loading commit data...
Vagrantfile Loading commit data...
android_environment.sh Loading commit data...
demo-log.txt Loading commit data...
installheader.bmp Loading commit data...
license.txt Loading commit data...
qgcresources.qrc Loading commit data...
qgroundcontrol.desktop Loading commit data...
qgroundcontrol.pro Loading commit data...
qgroundcontrol.qrc Loading commit data...
testlog.txt Loading commit data...
testlog2.txt Loading commit data...