mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Make ValueRelation test more stable
This commit is contained in:
parent
46a74a090a
commit
90acb5690e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user