File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -117,9 +117,28 @@ class GUI_EXPORT QgsAttributeForm : public QWidget
117
117
void featureSaved ( const QgsFeature& feature );
118
118
119
119
public slots:
120
+ /* *
121
+ * Call this to change the content of a given attribute. Will update the editor(s) related to this field.
122
+ *
123
+ * @param field The field to change
124
+ * @param value The new value
125
+ */
120
126
void changeAttribute ( const QString& field, const QVariant& value );
127
+
128
+ /* *
129
+ * Update all editors to correspond to a different feature.
130
+ *
131
+ * @param feature The feature which will be represented by the form
132
+ */
121
133
void setFeature ( const QgsFeature& feature );
134
+
135
+ /* *
136
+ * Save all the values from the editors to the layer.
137
+ *
138
+ * @return True if successful
139
+ */
122
140
bool save ();
141
+
123
142
/* *
124
143
* Alias for save()
125
144
*
You can’t perform that action at this time.
0 commit comments