From 913c0d56e5075a71a13fc9cba53f84306554a88a Mon Sep 17 00:00:00 2001 From: David Skoland Date: Tue, 27 Oct 2020 11:03:58 +0100 Subject: [PATCH] Update tst_qspinsbox test to use metaType system Change-Id: Ib744a1ceb3d90ae443ee754f97c0ef1edbbac52f Reviewed-by: Volker Hilsheimer --- tests/auto/widgets/widgets/qspinbox/tst_qspinbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/widgets/widgets/qspinbox/tst_qspinbox.cpp b/tests/auto/widgets/widgets/qspinbox/tst_qspinbox.cpp index 791fb84150..aa2025f439 100644 --- a/tests/auto/widgets/widgets/qspinbox/tst_qspinbox.cpp +++ b/tests/auto/widgets/widgets/qspinbox/tst_qspinbox.cpp @@ -1851,7 +1851,7 @@ void tst_QSpinBox::stepModifierPressAndHold() QTest::mouseRelease(&spin, Qt::LeftButton, modifiers, buttonRect.center()); const auto value = spy.last().at(0); - QVERIFY(value.type() == QVariant::Int); + QVERIFY(value.metaType().id() == QMetaType::Int); QCOMPARE(value.toInt(), spy.length() * expectedStepModifier); }