From eb27ef2980e0b7535d7ae98ee8aaa009f4b55300 Mon Sep 17 00:00:00 2001 From: Mathieu Pellerin Date: Sat, 23 Nov 2024 11:08:45 +0700 Subject: [PATCH] Update QgsRectangle test covering QVariant to make it both Qt5 and Qt6 compatible --- tests/src/core/geometry/testqgsrectangle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/core/geometry/testqgsrectangle.cpp b/tests/src/core/geometry/testqgsrectangle.cpp index 918d39518b8d..30085b5bc84e 100644 --- a/tests/src/core/geometry/testqgsrectangle.cpp +++ b/tests/src/core/geometry/testqgsrectangle.cpp @@ -364,7 +364,7 @@ void TestQgsRectangle::asVariant() const QVariant var = QVariant::fromValue( rect1 ); QVERIFY( var.isValid() ); QCOMPARE( var.userType(), qMetaTypeId() ); - QVERIFY( !var.canConvert< QgsReferencedRectangle >() ); + QVERIFY( !var.convert( QMetaType::fromType() ) ); const QgsRectangle rect2 = qvariant_cast( var ); QCOMPARE( rect2.xMinimum(), rect1.xMinimum() );