Skip to content
Permalink
Browse files

Make ValueRelation test more stable

  • Loading branch information
m-kuhn committed Dec 27, 2017
1 parent 46a74a0 commit 90acb5690e69f890ac7f79a00b50b8c380fc928d
Showing with 6 additions and 4 deletions.
  1. +6 −4 tests/src/gui/testqgsvaluerelationwidgetwrapper.cpp
@@ -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;

0 comments on commit 90acb56

Please sign in to comment.
You can’t perform that action at this time.