Skip to content

Commit 50e0703

Browse files
committedJun 27, 2014
Doxymentation
1 parent abd6a69 commit 50e0703

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
 

‎src/gui/qgsattributeform.h‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,28 @@ class GUI_EXPORT QgsAttributeForm : public QWidget
117117
void featureSaved( const QgsFeature& feature );
118118

119119
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+
*/
120126
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+
*/
121133
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+
*/
122140
bool save();
141+
123142
/**
124143
* Alias for save()
125144
*

0 commit comments

Comments
 (0)
Please sign in to comment.