diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-09-08 12:33:23 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-09-16 08:36:58 +0200 |
commit | 0b92a93e8e165520b12cb8ca1d0a8812ed6e046b (patch) | |
tree | abd70e7ce9477a31578d85d499ba69052d2befc5 /src/qmltest | |
parent | 7dab889190b2289a7c4b48e732d7cb7838dbf297 (diff) |
Avoid various warnings about deprected QMetaType methods
Change-Id: I8f4b2703fdd08ff341904219cec33c321e0511c7
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/qmltest')
-rw-r--r-- | src/qmltest/quicktestresult.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qmltest/quicktestresult.cpp b/src/qmltest/quicktestresult.cpp index f3a6fea193..71091174bd 100644 --- a/src/qmltest/quicktestresult.cpp +++ b/src/qmltest/quicktestresult.cpp @@ -501,8 +501,10 @@ bool QuickTestResult::verify bool QuickTestResult::fuzzyCompare(const QVariant &actual, const QVariant &expected, qreal delta) { if (actual.userType() == QMetaType::QColor || expected.userType() == QMetaType::QColor) { - if (!actual.canConvert(QMetaType::QColor) || !expected.canConvert(QMetaType::QColor)) + if (!actual.canConvert(QMetaType(QMetaType::QColor)) + || !expected.canConvert(QMetaType(QMetaType::QColor))) { return false; + } //fuzzy color comparison QColor act; |