summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtest.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-07-27 17:00:22 +0200
committerLars Knoll <lars.knoll@qt.io>2020-08-24 00:19:18 +0200
commite7e7540aecc5a4a44f1d1a25e58ccbcf662cbe24 (patch)
treefa54df19419fb304b14000d0c6fa69b6ad883def /src/testlib/qtest.h
parent92a31781bb17d31ab09291ca00efb4346cb2f371 (diff)
Deprecate int based convert/canConvert
Better to provide the correct meta type to convert to. Change-Id: I8e0d46e4ba482186201c157e302c03874bd38e7b Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/testlib/qtest.h')
-rw-r--r--src/testlib/qtest.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/qtest.h b/src/testlib/qtest.h
index 57612de3de..cd8bd713f7 100644
--- a/src/testlib/qtest.h
+++ b/src/testlib/qtest.h
@@ -222,7 +222,7 @@ template<> inline char *toString(const QVariant &v)
vstring.append(type);
if (!v.isNull()) {
vstring.append(',');
- if (v.canConvert(QMetaType::QString)) {
+ if (v.canConvert<QString>()) {
vstring.append(v.toString().toLocal8Bit());
}
else {