diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-05-03 14:42:53 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-04 10:36:17 +0200 |
commit | 44f9412bf789d73dd462292038686f5b07026132 (patch) | |
tree | 8f0c57c9c9a72317bed52b18519944b0b6ce87a9 /src | |
parent | c96c1d152c8506afb3993f23ac7cf35e46fb808f (diff) |
Change uses of {to,from}Ascii to {to,from}Latin1
This operation should be a no-op anyway, since at this point in time,
the fromAscii and toAscii functions simply call their fromLatin1 and
toLatin1 counterparts.
Task-number: QTBUG-21872
Change-Id: I03084595ddc425a988374b8352fd23e9504ffba6
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/accessible/quick/qaccessiblequickitem.cpp | 2 | ||||
-rw-r--r-- | src/plugins/accessible/quick/qaccessiblequickview.cpp | 2 | ||||
-rw-r--r-- | src/qml/qml/qqmlboundsignal.cpp | 2 | ||||
-rw-r--r-- | src/qml/qml/qqmlglobal.cpp | 2 | ||||
-rw-r--r-- | src/qml/qml/v8/qjsvalue.cpp | 2 | ||||
-rw-r--r-- | src/qmltest/quicktestevent.cpp | 2 | ||||
-rw-r--r-- | src/quick/items/context2d/qquickcanvasitem.cpp | 2 | ||||
-rw-r--r-- | src/quick/util/qquickglobal.cpp | 4 |
8 files changed, 9 insertions, 9 deletions
diff --git a/src/plugins/accessible/quick/qaccessiblequickitem.cpp b/src/plugins/accessible/quick/qaccessiblequickitem.cpp index d282b04eaf..99db9fa626 100644 --- a/src/plugins/accessible/quick/qaccessiblequickitem.cpp +++ b/src/plugins/accessible/quick/qaccessiblequickitem.cpp @@ -211,7 +211,7 @@ QString QAccessibleQuickItem::text(QAccessible::Text textType) const #ifdef Q_ACCESSIBLE_QUICK_ITEM_ENABLE_DEBUG_DESCRIPTION case QAccessible::DebugDescription: { QString debugString; - debugString = QString::fromAscii(object()->metaObject()->className()) + QLatin1Char(' '); + debugString = QString::fromLatin1(object()->metaObject()->className()) + QLatin1Char(' '); debugString += isAccessible() ? QLatin1String("enabled") : QLatin1String("disabled"); return debugString; break; } diff --git a/src/plugins/accessible/quick/qaccessiblequickview.cpp b/src/plugins/accessible/quick/qaccessiblequickview.cpp index ed8167f4d1..5f66f00d8a 100644 --- a/src/plugins/accessible/quick/qaccessiblequickview.cpp +++ b/src/plugins/accessible/quick/qaccessiblequickview.cpp @@ -102,7 +102,7 @@ QString QAccessibleQuickView::text(QAccessible::Text text) const { #ifdef Q_ACCESSIBLE_QUICK_ITEM_ENABLE_DEBUG_DESCRIPTION if (text == QAccessible::DebugDescription) { - return QString::fromAscii(object()->metaObject()->className()) ; + return QString::fromLatin1(object()->metaObject()->className()) ; } #else Q_UNUSED(text) diff --git a/src/qml/qml/qqmlboundsignal.cpp b/src/qml/qml/qqmlboundsignal.cpp index b8b74ac2e9..358e945d41 100644 --- a/src/qml/qml/qqmlboundsignal.cpp +++ b/src/qml/qml/qqmlboundsignal.cpp @@ -287,7 +287,7 @@ void QQmlBoundSignal::subscriptionCallback(QQmlNotifierEndpoint *e, void **a) return; if (QQmlDebugService::isDebuggingEnabled()) - QV8DebugService::instance()->signalEmitted(QString::fromAscii(s->m_scope->metaObject()->method(s->m_index).methodSignature())); + QV8DebugService::instance()->signalEmitted(QString::fromLatin1(s->m_scope->metaObject()->method(s->m_index).methodSignature())); QQmlHandlingSignalProfiler prof(*(s->m_scope), s->m_index, s->m_expression); diff --git a/src/qml/qml/qqmlglobal.cpp b/src/qml/qml/qqmlglobal.cpp index c5228d07c3..6f4942963f 100644 --- a/src/qml/qml/qqmlglobal.cpp +++ b/src/qml/qml/qqmlglobal.cpp @@ -318,7 +318,7 @@ QObject *QQmlGuiProvider::inputMethod() { // We don't have any input method code by default QObject *o = new QObject(); - o->setObjectName(QString::fromAscii("No inputMethod available")); + o->setObjectName(QString::fromLatin1("No inputMethod available")); return o; } diff --git a/src/qml/qml/v8/qjsvalue.cpp b/src/qml/qml/v8/qjsvalue.cpp index 3cde607995..726ec82e90 100644 --- a/src/qml/qml/v8/qjsvalue.cpp +++ b/src/qml/qml/v8/qjsvalue.cpp @@ -156,7 +156,7 @@ QJSValue::QJSValue(const QLatin1String &value) */ #ifndef QT_NO_CAST_FROM_ASCII QJSValue::QJSValue(const char *value) - : d_ptr(new QJSValuePrivate(QString::fromAscii(value))) + : d_ptr(new QJSValuePrivate(QString::fromLatin1(value))) { } #endif diff --git a/src/qmltest/quicktestevent.cpp b/src/qmltest/quicktestevent.cpp index 94051711f1..9e401c9392 100644 --- a/src/qmltest/quicktestevent.cpp +++ b/src/qmltest/quicktestevent.cpp @@ -142,7 +142,7 @@ namespace QtQuickTest static const char *mouseActionNames[] = { "MousePress", "MouseRelease", "MouseClick", "MouseDoubleClick", "MouseMove" }; QString warning = QString::fromLatin1("Mouse event \"%1\" not accepted by receiving window"); - QWARN(warning.arg(QString::fromLatin1(mouseActionNames[static_cast<int>(action)])).toAscii().data()); + QWARN(warning.arg(QString::fromLatin1(mouseActionNames[static_cast<int>(action)])).toLatin1().data()); } } diff --git a/src/quick/items/context2d/qquickcanvasitem.cpp b/src/quick/items/context2d/qquickcanvasitem.cpp index c98c4bc7a6..0e5a3a0205 100644 --- a/src/quick/items/context2d/qquickcanvasitem.cpp +++ b/src/quick/items/context2d/qquickcanvasitem.cpp @@ -933,7 +933,7 @@ QString QQuickCanvasItem::toDataURL(const QString& mimeType) const else return QLatin1Literal("data:,"); - image.save(&buffer, type.toAscii()); + image.save(&buffer, type.toLatin1()); buffer.close(); QString dataUrl = QLatin1Literal("data:%1;base64,%2"); return dataUrl.arg(mime).arg(QLatin1String(ba.toBase64().constData())); diff --git a/src/quick/util/qquickglobal.cpp b/src/quick/util/qquickglobal.cpp index 6869d480d5..99caf218a6 100644 --- a/src/quick/util/qquickglobal.cpp +++ b/src/quick/util/qquickglobal.cpp @@ -171,8 +171,8 @@ private: static inline uchar fromHex(const QString &s, int idx) { - uchar c = s.at(idx).toAscii(); - uchar c2 = s.at(idx + 1).toAscii(); + uchar c = s.at(idx).toLatin1(); + uchar c2 = s.at(idx + 1).toLatin1(); return fromHex(c, c2); } }; |