QString: Fix documentation for toDouble() and toFloat()
The character 'g' is only a valid format when converting numbers to strings, but not other way round. Change-Id: Ie772886e7a45a5067c0a3e4eaa3a6ccef8e69426 Reviewed-by: Martin Smith <martin.smith@qt.io>
This commit is contained in:
parent
2841e2b61e
commit
5d1809be83
@ -7177,7 +7177,7 @@ ushort QString::toUShort(bool *ok, int base) const
|
||||
\snippet qstring/main.cpp 66
|
||||
|
||||
\warning The QString content may only contain valid numerical characters
|
||||
which includes the plus/minus sign, the characters g and e used in scientific
|
||||
which includes the plus/minus sign, the character e used in scientific
|
||||
notation, and the decimal point. Including the unit or additional characters
|
||||
leads to a conversion error.
|
||||
|
||||
@ -7213,7 +7213,7 @@ double QString::toDouble(bool *ok) const
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
\warning The QString content may only contain valid numerical characters
|
||||
which includes the plus/minus sign, the characters g and e used in scientific
|
||||
which includes the plus/minus sign, the character e used in scientific
|
||||
notation, and the decimal point. Including the unit or additional characters
|
||||
leads to a conversion error.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user