Commit f5dcd551 authored by Debao Zhang's avatar Debao Zhang

Qt5: Don't use the deprecated {QString,QChar}::fromAscii()

Change-Id: Ic1d302c2186b11ffec5139f4f491d477d334ec8f
Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 1193b0f5
......@@ -594,7 +594,7 @@ void CreateBindings::lookupInScope(const Name *name, Scope *scope,
#ifdef DEBUG_LOOKUP
Overview oo;
qDebug() << "Found" << id->chars() << "in"
<< (binding ? oo(binding->_name) : QString::fromAscii("<null>"));
<< (binding ? oo(binding->_name) : QString::fromLatin1("<null>"));
#endif // DEBUG_LOOKUP
LookupItem item;
......
......@@ -1766,7 +1766,7 @@ QmlJS::ConsoleItem *constructLogItemTree(QmlJS::ConsoleItem *parent,
if (objectData.name.isEmpty())
text = objectData.value.toString();
else
text = QString(_("%1: %2")).arg(QString::fromAscii(objectData.name))
text = QString(_("%1: %2")).arg(QString::fromLatin1(objectData.name))
.arg(objectData.value.toString());
ConsoleItem *item = new ConsoleItem(parent, ConsoleItem::UndefinedType, text);
......
......@@ -848,7 +848,7 @@ public:
// Set text only if input is ascii key without control modifier.
if (m_text.isEmpty() && k <= 0x7f && (m & (HostOsInfo::controlModifier())) == 0) {
QChar c = QChar::fromAscii(k);
QChar c = QChar::fromLatin1(k);
m_text = QString((m & ShiftModifier) != 0 ? c.toUpper() : c.toLower());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment