diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-04-28 05:09:39 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-04-29 13:13:05 +0200 |
commit | 1a6dd638b830a5353fb2321b74a57d380539c92d (patch) | |
tree | 9123fa75f233b10ba49fc20fac358ffea1258c13 /src/quick/items/qquickitem.cpp | |
parent | d09c05954867b57b3ae00499a1552f022d33e74c (diff) |
Get rid of QV8Engine::toString()
It's easier to use toQString() on a QV4::Value
Change-Id: I9bf22cb72607b32948e77c632d2f9b8fe120ea41
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/quick/items/qquickitem.cpp')
-rw-r--r-- | src/quick/items/qquickitem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/items/qquickitem.cpp b/src/quick/items/qquickitem.cpp index d110a01290..f5be518a91 100644 --- a/src/quick/items/qquickitem.cpp +++ b/src/quick/items/qquickitem.cpp @@ -3762,7 +3762,7 @@ void QQuickItem::mapFromItem(QQmlV8Function *args) const itemObj = qobject_cast<QQuickItem*>(engine->toQObject(item)); if (!itemObj && !item->IsNull()) { - qmlInfo(this) << "mapFromItem() given argument \"" << engine->toString(item->ToString()) + qmlInfo(this) << "mapFromItem() given argument \"" << item->v4Value().toQString() << "\" which is neither null nor an Item"; return; } @@ -3834,7 +3834,7 @@ void QQuickItem::mapToItem(QQmlV8Function *args) const itemObj = qobject_cast<QQuickItem*>(engine->toQObject(item)); if (!itemObj && !item->IsNull()) { - qmlInfo(this) << "mapToItem() given argument \"" << engine->toString(item->ToString()) + qmlInfo(this) << "mapToItem() given argument \"" << item->v4Value().toQString() << "\" which is neither null nor an Item"; return; } |