diff options
author | Andre Hartmann <aha_1980@gmx.de> | 2018-08-05 14:12:37 +0200 |
---|---|---|
committer | André Hartmann <aha_1980@gmx.de> | 2018-08-06 08:24:05 +0000 |
commit | 5d1809be83c667fc72f58b84d95fbe3e37451350 (patch) | |
tree | 30f9293d0c7cb75622820cdcfea768f97275bb5f /src/corelib/tools/qstring.cpp | |
parent | 2841e2b61e32f26900bde987d469c8b97ea31999 (diff) |
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>
Diffstat (limited to 'src/corelib/tools/qstring.cpp')
-rw-r--r-- | src/corelib/tools/qstring.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/tools/qstring.cpp b/src/corelib/tools/qstring.cpp index bb5a1cf852..82a065efc0 100644 --- a/src/corelib/tools/qstring.cpp +++ b/src/corelib/tools/qstring.cpp @@ -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. |