mirror of https://github.com/jhol/qtdmm.git
EngNumberValidator: QString now wraps characters in QChar
This commit is contained in:
parent
ba6bd4f202
commit
f5a85c91d9
|
@ -53,7 +53,7 @@ EngNumberValidator::value( const QString & string )
|
|||
{
|
||||
double factor = 1.;
|
||||
|
||||
switch (string[string.length()-1])
|
||||
switch (string[string.length()-1].toAscii())
|
||||
{
|
||||
case 'm':
|
||||
factor = 1e-3;
|
||||
|
|
Loading…
Reference in New Issue