forked from qt-creator/qt-creator
Do not use the fromAscii() and toAscii() functions.
They are deprecated in Qt 5. Use fromLatin1() and toLatin1() instead. In Qt 5, these always do the same thing as their "Ascii" counterparts. The same goes for Qt 4, provided QTextCodec::setCodecForCStrings has not been set, which it hasn't. Change-Id: I04edeb376762b6671eff8156094f0d5e2cb8e1ea Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -799,7 +799,7 @@ static Input parseVimKeyName(const QString &keyName)
|
||||
static const QMap<QString, int> k = vimKeyNames();
|
||||
QMap<QString, int>::ConstIterator it = k.constFind(key.toUpper());
|
||||
if (it != k.end())
|
||||
return Input(*it, mods, *it <= 0x7f ? QString(QChar::fromAscii(*it)) : QString(""));
|
||||
return Input(*it, mods, *it <= 0x7f ? QString(QChar::fromLatin1(*it)) : QString(""));
|
||||
}
|
||||
|
||||
return Input();
|
||||
|
||||
Reference in New Issue
Block a user