summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qchar.cpp
diff options
context:
space:
mode:
authorRitt Konstantin <ritt.ks@gmail.com>2010-11-29 17:22:37 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-11-29 17:24:00 (GMT)
commitac8535b0277670e2a8f572045306e957ffa4dfc1 (patch)
treee1cf42a2e165b2e42e5e5a25eb1f966d588993c1 /src/corelib/tools/qchar.cpp
parent1a204f01b5f2dd2cfea81d371f476f8eb1d895ee (diff)
downloadQt-ac8535b0277670e2a8f572045306e957ffa4dfc1.zip
Qt-ac8535b0277670e2a8f572045306e957ffa4dfc1.tar.gz
Qt-ac8535b0277670e2a8f572045306e957ffa4dfc1.tar.bz2
add QChar::currentUnicodeVersion() static member
Merge-request: 2482 Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
Diffstat (limited to 'src/corelib/tools/qchar.cpp')
-rw-r--r--src/corelib/tools/qchar.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/corelib/tools/qchar.cpp b/src/corelib/tools/qchar.cpp
index fba0bd2..a99b313 100644
--- a/src/corelib/tools/qchar.cpp
+++ b/src/corelib/tools/qchar.cpp
@@ -1069,6 +1069,15 @@ QChar::UnicodeVersion QChar::unicodeVersion(ushort ucs2)
return (QChar::UnicodeVersion) qGetProp(ucs2)->unicodeVersion;
}
+/*!
+ \since 4.8
+
+ Returns the most recent supported Unicode version.
+*/
+QChar::UnicodeVersion QChar::currentUnicodeVersion()
+{
+ return UNICODE_DATA_VERSION;
+}
/*!
Returns the lowercase equivalent if the character is uppercase or titlecase;