836 unsigned char byte3 = (
unsigned char)(
keysym >> 8);
843 mib = byte3 + 4;
break;
860 #if !defined(QT_NO_XIM) 878 chars[0] = (
unsigned char) (
keysym & 0xff);
881 }
else if (
keysym >= 0x1000000 &&
keysym <= 0x100ffff) {
885 if (count < (
int)chars.
size()-1)
889 if (!mapper && converted.
unicode() != 0x0) {
918 }
else if (
keysym >= XK_KP_Space &&
keysym <= XK_KP_9) {
static QTextCodec * codecForLocale()
Returns a pointer to the codec most suitable for this locale.
char * data()
Returns a pointer to the data stored in the byte array.
ushort unicode() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
Qt::KeyboardModifiers translateModifiers(int s)
int length() const
Returns the number of characters in this string.
The QString class provides a Unicode character string.
The QChar class provides a 16-bit Unicode character.
const QChar * unicode() const
Returns a '\0'-terminated Unicode representation of the string.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
virtual int mibEnum() const =0
Subclasses of QTextCodec must reimplement this function.
QChar toUpper() const
Returns the uppercase equivalent if the character is lowercase or titlecase; otherwise returns the ch...
static QTextCodec * codecForMib(int mib)
Returns the QTextCodec which matches the MIBenum mib.
QString toUnicode(const QByteArray &) const
Converts a from the encoding of this codec to Unicode, and returns the result in a QString...
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
void resize(int size)
Sets the size of the byte array to size bytes.
int translateKeySym(uint key) const
static QChar keysymToUnicode(unsigned char byte3, unsigned char byte4)
int size() const
Returns the number of bytes in this byte array.
bool isEmpty() const
Returns true if the byte array has size 0; otherwise returns false.
The QTextCodec class provides conversions between text encodings.