File tree 1 file changed +19
-0
lines changed
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,14 @@ class GUI_EXPORT QgsAttributeForm : public QWidget
36
36
37
37
const QgsFeature& feature () { return mFeature ; }
38
38
39
+ /* *
40
+ * Hides the button box (Ok/Cancel) and enables auto-commit
41
+ */
39
42
void hideButtonBox ();
40
43
44
+ /* *
45
+ * Shows the button box (Ok/Cancel) and disables auto-commit
46
+ */
41
47
void showButtonBox ();
42
48
43
49
/* *
@@ -46,8 +52,18 @@ class GUI_EXPORT QgsAttributeForm : public QWidget
46
52
*/
47
53
void addInterface ( QgsAttributeFormInterface* iface );
48
54
55
+ /* *
56
+ * Returns the layer for which this form is shown
57
+ *
58
+ * @return Layer
59
+ */
49
60
QgsVectorLayer* layer () { return mLayer ; }
50
61
62
+ /* *
63
+ * Returns if the form is currently in editable mode.
64
+ *
65
+ * @return Editable mode of this form
66
+ */
51
67
bool editable ();
52
68
53
69
/* *
@@ -118,6 +134,9 @@ class GUI_EXPORT QgsAttributeForm : public QWidget
118
134
*/
119
135
Q_DECL_DEPRECATED void reject () { resetValues (); }
120
136
137
+ /* *
138
+ * Sets all values to the values of the current feature
139
+ */
121
140
void resetValues ();
122
141
123
142
private slots:
You can’t perform that action at this time.
0 commit comments