File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -807,6 +807,8 @@ void QgsFieldsProperties::on_mEditorLayoutComboBox_currentIndexChanged( int inde
807
807
808
808
void QgsFieldsProperties::apply ()
809
809
{
810
+ QSet<QString> excludeAttributesWMS, excludeAttributesWFS;
811
+
810
812
for ( int i = 0 ; i < mAttributesList ->rowCount (); i++ )
811
813
{
812
814
int idx = mAttributesList ->item ( i, attrIdCol )->text ().toInt ();
@@ -865,6 +867,15 @@ void QgsFieldsProperties::apply()
865
867
case QgsVectorLayer::UuidGenerator:
866
868
break ;
867
869
}
870
+
871
+ if ( mAttributesList ->item ( i, attrWMSCol )->checkState () == Qt::Unchecked )
872
+ {
873
+ excludeAttributesWMS.insert ( mAttributesList ->item ( i, attrNameCol )->text () );
874
+ }
875
+ if ( mAttributesList ->item ( i, attrWFSCol )->checkState () == Qt::Unchecked )
876
+ {
877
+ excludeAttributesWFS.insert ( mAttributesList ->item ( i, attrNameCol )->text () );
878
+ }
868
879
}
869
880
870
881
// tabs and groups
@@ -879,4 +890,7 @@ void QgsFieldsProperties::apply()
879
890
mLayer ->setEditorLayout (( QgsVectorLayer::EditorLayout )mEditorLayoutComboBox ->currentIndex () );
880
891
mLayer ->setEditForm ( leEditForm->text () );
881
892
mLayer ->setEditFormInit ( leEditFormInit->text () );
893
+
894
+ mLayer ->setExcludeAttributesWMS ( excludeAttributesWMS );
895
+ mLayer ->setExcludeAttributesWFS ( excludeAttributesWFS );
882
896
}
You can’t perform that action at this time.
0 commit comments