Skip to content

Commit

Permalink
Make ValueRelation test more stable
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Dec 27, 2017
1 parent 46a74a0 commit 90acb56
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/src/gui/testqgsvaluerelationwidgetwrapper.cpp
Expand Up @@ -67,11 +67,13 @@ void TestQgsValueRelationWidgetWrapper::testScrollBarUnlocked()
QgsProject::instance()->addMapLayer( &vl1, false, false );

// build a value relation widget wrapper
QListWidget lw;
QWidget editor;
QgsValueRelationWidgetWrapper w( &vl1, 0, &editor, nullptr );
QgsValueRelationWidgetWrapper w( &vl1, 0, nullptr, nullptr );

QVariantMap config;
config.insert( QStringLiteral( "AllowMulti" ), true );
w.setConfig( config );
w.widget();
w.setEnabled( true );
w.initWidget( &lw );

// add an item virtually
QListWidgetItem item;
Expand Down

0 comments on commit 90acb56

Please sign in to comment.