mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-05 00:09:32 -04:00
fix tests due to rebase
This commit is contained in:
parent
48e2043505
commit
8343e3f544
@ -158,8 +158,8 @@ class TestQgsMergeattributesDialog : public QgsTest
|
||||
QgsVectorLayer ml( "LineString", "test", "memory" );
|
||||
QVERIFY( ml.isValid() );
|
||||
|
||||
QgsField notHiddenField( QStringLiteral( "not_hidden" ), QVariant::Int );
|
||||
QgsField hiddenField( QStringLiteral( "hidden" ), QVariant::Int );
|
||||
QgsField notHiddenField( QStringLiteral( "not_hidden" ), QMetaType::Type::Int );
|
||||
QgsField hiddenField( QStringLiteral( "hidden" ), QMetaType::Type::Int );
|
||||
// hide the field
|
||||
ml.setEditorWidgetSetup( 1, QgsEditorWidgetSetup( QStringLiteral( "Hidden" ), QVariantMap() ) );
|
||||
QVERIFY( ml.dataProvider()->addAttributes( { notHiddenField, hiddenField } ) );
|
||||
@ -191,8 +191,8 @@ class TestQgsMergeattributesDialog : public QgsTest
|
||||
QgsVectorLayer ml( "LineString", "test", "memory" );
|
||||
QVERIFY( ml.isValid() );
|
||||
|
||||
QgsField notHiddenField( QStringLiteral( "not_hidden" ), QVariant::Int );
|
||||
QgsField hiddenField( QStringLiteral( "hidden" ), QVariant::Int );
|
||||
QgsField notHiddenField( QStringLiteral( "not_hidden" ), QMetaType::Type::Int );
|
||||
QgsField hiddenField( QStringLiteral( "hidden" ), QMetaType::Type::Int );
|
||||
QVERIFY( ml.dataProvider()->addAttributes( { notHiddenField, hiddenField } ) );
|
||||
ml.updateFields();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user