summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qchar.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-05-02 16:30:04 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-22 20:56:38 +0200
commit2c9228973fc212db044add557839b15a8cb483c3 (patch)
treea67c402cb988461af3f4c0935c5a13a473768e6f /src/corelib/tools/qchar.cpp
parent1ca791faf5b89c35b4b39d443d2118a882c3946b (diff)
Deprecate {QString,QStringRef,QChar}::{to,from}Ascii
Make them call exactly their Latin 1 counterparts. For the QString functions that take a single char, also use fromAscii directly. Change-Id: I87645aba6ab9cde34c1df3cbc3a979fbd9e91f9d Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com> Reviewed-by: Olivier Goffart <ogoffart@woboq.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/corelib/tools/qchar.cpp')
-rw-r--r--src/corelib/tools/qchar.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/tools/qchar.cpp b/src/corelib/tools/qchar.cpp
index cb5db973e1..ecaeff453b 100644
--- a/src/corelib/tools/qchar.cpp
+++ b/src/corelib/tools/qchar.cpp
@@ -1320,6 +1320,7 @@ uint QChar::toCaseFolded(uint ucs4)
/*!
\fn char QChar::toAscii() const
+ \deprecated
Returns the Latin-1 character value of the QChar, or 0 if the character is not
representable.
@@ -1339,6 +1340,7 @@ uint QChar::toCaseFolded(uint ucs4)
/*!
\fn QChar QChar::fromAscii(char)
+ \deprecated
Converts the ASCII character \a c to it's equivalent QChar. This
is mainly useful for non-internationalized software.