792 unsigned char byte3 = (
unsigned char)(
keysym >> 8);
799 mib = byte3 + 4;
break;
816 #if !defined(QT_NO_XIM) 834 chars[0] = (
unsigned char) (
keysym & 0xff);
837 }
else if (
keysym >= 0x1000000 &&
keysym <= 0x100ffff) {
841 if (count < (
int)chars.
size()-1)
845 if (!mapper && converted.
unicode() != 0x0) {
874 }
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...
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 QChar keysymToUnicode(unsigned char byte3, unsigned char byte4)
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 size() const
Returns the number of bytes in this byte array.
Qt::KeyboardModifiers translateModifiers(int s)
bool isEmpty() const
Returns true if the byte array has size 0; otherwise returns false.
The QTextCodec class provides conversions between text encodings.
int translateKeySym(uint key) const