Skip to content

Commit d7019ce

Browse files
committedMay 27, 2019
More QVariant test fixes
1 parent e6050b5 commit d7019ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎tests/src/gui/testqgsvaluerelationwidgetwrapper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,11 @@ void TestQgsValueRelationWidgetWrapper::testDrillDownMulti()
302302
QCOMPARE( w_municipality.mTableWidget->item( 0, 0 )->data( Qt::UserRole ).toString(), QStringLiteral( "2" ) );
303303
QCOMPARE( w_municipality.mTableWidget->item( 1, 0 )->text(), QStringLiteral( "Some Place By The River" ) );
304304
QCOMPARE( w_municipality.mTableWidget->item( 1, 0 )->data( Qt::UserRole ).toString(), QStringLiteral( "1" ) );
305-
QCOMPARE( w_municipality.value(), QVariantList( { 1 } ) );
305+
QCOMPARE( w_municipality.value(), QVariant( QVariantList( { 1 } ) ) );
306306
QCOMPARE( w_municipality.mTableWidget->item( 0, 0 )->checkState(), Qt::Unchecked );
307307
QCOMPARE( w_municipality.mTableWidget->item( 1, 0 )->checkState(), Qt::Checked );
308308
w_municipality.setValue( QStringLiteral( "{1,2}" ) );
309-
QCOMPARE( w_municipality.value(), QVariantList( { 2, 1 } ) );
309+
QCOMPARE( w_municipality.value(), QVariant( QVariantList( { 2, 1 } ) ) );
310310
QCOMPARE( w_municipality.mTableWidget->item( 0, 0 )->checkState(), Qt::Checked );
311311
QCOMPARE( w_municipality.mTableWidget->item( 1, 0 )->checkState(), Qt::Checked );
312312

0 commit comments

Comments
 (0)
Please sign in to comment.