Skip to content

Commit 90acb56

Browse files
committedDec 27, 2017
Make ValueRelation test more stable
1 parent 46a74a0 commit 90acb56

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
 

‎tests/src/gui/testqgsvaluerelationwidgetwrapper.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,13 @@ void TestQgsValueRelationWidgetWrapper::testScrollBarUnlocked()
6767
QgsProject::instance()->addMapLayer( &vl1, false, false );
6868

6969
// build a value relation widget wrapper
70-
QListWidget lw;
71-
QWidget editor;
72-
QgsValueRelationWidgetWrapper w( &vl1, 0, &editor, nullptr );
70+
QgsValueRelationWidgetWrapper w( &vl1, 0, nullptr, nullptr );
71+
72+
QVariantMap config;
73+
config.insert( QStringLiteral( "AllowMulti" ), true );
74+
w.setConfig( config );
75+
w.widget();
7376
w.setEnabled( true );
74-
w.initWidget( &lw );
7577

7678
// add an item virtually
7779
QListWidgetItem item;

0 commit comments

Comments
 (0)
Please sign in to comment.