diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2012-06-24 23:45:22 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-25 02:23:18 +0200 |
commit | d75a97793a803064bbacf97dca5beb670ad3e0b6 (patch) | |
tree | 60916a8376c0fc1079c54ff5a03e2d7797a8dfe8 /src/corelib/codecs/qeuckrcodec.cpp | |
parent | 587b80f67dee42bd6231a2cd836dded05e5dfd13 (diff) |
Remove the font codecs
These codecs have only been used for XLFD based fonts.
These are not supported anymore by Qt 5.
Change-Id: I7dc083f2efcd42363b144b24bd62c169d83390cf
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/codecs/qeuckrcodec.cpp')
-rw-r--r-- | src/corelib/codecs/qeuckrcodec.cpp | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/corelib/codecs/qeuckrcodec.cpp b/src/corelib/codecs/qeuckrcodec.cpp index f502d6fa50..1764d3a6c2 100644 --- a/src/corelib/codecs/qeuckrcodec.cpp +++ b/src/corelib/codecs/qeuckrcodec.cpp @@ -189,54 +189,6 @@ QByteArray QEucKrCodec::_name() } -#ifdef Q_OS_UNIX -QFontKsc5601Codec::QFontKsc5601Codec() -{ -} - - -QByteArray QFontKsc5601Codec::_name() -{ - return "ksc5601.1987-0"; -} - - -int QFontKsc5601Codec::_mibEnum() -{ - return 36; -} - - -QString QFontKsc5601Codec::convertToUnicode(const char*, int, ConverterState *) const -{ - return QString(); -} - -QByteArray QFontKsc5601Codec::convertFromUnicode(const QChar *uc, int len, ConverterState *) const -{ - QByteArray result; - result.resize(len * 2); - uchar *rdata = (uchar *) result.data(); - const QChar *ucp = uc; - - for (int i = 0; i < len; i++) { - QChar ch(*ucp++); - ch = qt_UnicodeToKsc5601(ch.unicode()); - - if (! ch.isNull()) { - *rdata++ = ch.row() & 0x7f ; - *rdata++ = ch.cell() & 0x7f; - } else { - //white square - *rdata++ = 0x21; - *rdata++ = 0x60; - } - } - - return result; -} -#endif // Q_OS_UNIX - // code converter wrapper static unsigned short ksc2unicode (unsigned short code); |