diff options
author | Kent Hansen <kent.hansen@nokia.com> | 2012-02-21 13:06:35 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-17 16:57:23 +0200 |
commit | 405bf8f7b8e1b1174b80d64a5aeba39ed4e797ca (patch) | |
tree | 928a33d31d301d823b21e67e45d400b866c11600 /tests/benchmarks | |
parent | 80451ee3dcb4b50f591759018edad27098eeb371 (diff) |
Adapt qtscript to QMetaMethod::signature() renaming
QMetaMethod::methodSignature() should be used instead, and it returns
a QByteArray.
Change-Id: I81150e238dab7eda26d0466ac407a4f3ba79a7c7
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'tests/benchmarks')
-rw-r--r-- | tests/benchmarks/script/qscriptqobject/tst_qscriptqobject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/benchmarks/script/qscriptqobject/tst_qscriptqobject.cpp b/tests/benchmarks/script/qscriptqobject/tst_qscriptqobject.cpp index 52d6f08..ea560bb 100644 --- a/tests/benchmarks/script/qscriptqobject/tst_qscriptqobject.cpp +++ b/tests/benchmarks/script/qscriptqobject/tst_qscriptqobject.cpp @@ -407,7 +407,7 @@ void tst_QScriptQObject::readMethodByName_dataHelper(const QMetaObject *mo) QMetaMethod method = mo->method(i); if (method.access() == QMetaMethod::Private) continue; - QByteArray signature = method.signature(); + QByteArray signature = method.methodSignature(); QByteArray name = signature.left(signature.indexOf('(')); if (uniqueNames.contains(name)) continue; @@ -424,7 +424,7 @@ void tst_QScriptQObject::readMethodBySignature_dataHelper(const QMetaObject *mo) QMetaMethod method = mo->method(i); if (method.access() == QMetaMethod::Private) continue; - QTest::newRow(method.signature()) << QString::fromLatin1(method.signature()); + QTest::newRow(method.methodSignature().constData()) << QString::fromLatin1(method.methodSignature().constData()); } } |