Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix config qgsdualview (#41503)
  • Loading branch information
SebastienPeillet committed Feb 11, 2021
1 parent 14ee31a commit 33119ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/attributetable/qgsdualview.cpp
Expand Up @@ -148,6 +148,8 @@ void QgsDualView::init( QgsVectorLayer *layer, QgsMapCanvas *mapCanvas, const Qg
mAttributeEditor->layout()->addWidget( mAttributeForm );
}

setAttributeTableConfig( mLayer->attributeTableConfig() );

connect( mAttributeForm, &QgsAttributeForm::widgetValueChanged, this, &QgsDualView::featureFormAttributeChanged );
connect( mAttributeForm, &QgsAttributeForm::modeChanged, this, &QgsDualView::formModeChanged );
connect( mAttributeForm, &QgsAttributeForm::filterExpressionSet, this, &QgsDualView::filterExpressionSet );
Expand Down
6 changes: 6 additions & 0 deletions tests/src/gui/testqgsdualview.cpp
Expand Up @@ -47,6 +47,7 @@ class TestQgsDualView : public QObject
void testColumnHeaders();

void testData();
void testAttributeTableConfig();
void testFilterSelected();

void testSelectAll();
Expand Down Expand Up @@ -132,6 +133,11 @@ void TestQgsDualView::testData()
}
}

void TestQgsDualView::testAttributeTableConfig()
{
QCOMPARE( mDualView->attributeTableConfig().columns().count(), mPointsLayer->attributeTableConfig().columns().count() );
}

void TestQgsDualView::testFilterSelected()
{
QgsFeature feature;
Expand Down

0 comments on commit 33119ca

Please sign in to comment.