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
807807
808808void QgsFieldsProperties::apply ()
809809{
810+ QSet<QString> excludeAttributesWMS, excludeAttributesWFS;
811+
810812 for ( int i = 0 ; i < mAttributesList ->rowCount (); i++ )
811813 {
812814 int idx = mAttributesList ->item ( i, attrIdCol )->text ().toInt ();
@@ -865,6 +867,15 @@ void QgsFieldsProperties::apply()
865867 case QgsVectorLayer::UuidGenerator:
866868 break ;
867869 }
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+ }
868879 }
869880
870881 // tabs and groups
@@ -879,4 +890,7 @@ void QgsFieldsProperties::apply()
879890 mLayer ->setEditorLayout (( QgsVectorLayer::EditorLayout )mEditorLayoutComboBox ->currentIndex () );
880891 mLayer ->setEditForm ( leEditForm->text () );
881892 mLayer ->setEditFormInit ( leEditFormInit->text () );
893+
894+ mLayer ->setExcludeAttributesWMS ( excludeAttributesWMS );
895+ mLayer ->setExcludeAttributesWFS ( excludeAttributesWFS );
882896}
You can’t perform that action at this time.
0 commit comments