@@ -59,17 +59,27 @@ class APP_EXPORT QgsVectorLayerProperties : public QgsOptionsDialogBase, private
59
59
QgsVectorLayerProperties ( QgsVectorLayer *lyr = nullptr , QWidget *parent = nullptr , Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
60
60
61
61
// ! Returns the display name entered in the dialog
62
- QString displayName ();
63
- void setRendererDirty ( bool ) {}
62
+ QString displayName ()
63
+ {
64
+ return txtDisplayName->text ();
65
+ }
64
66
65
- /* * Adds an attribute to the table (but does not commit it yet)
66
- \param field the field to add
67
- \returns false in case of a name conflict, true in case of success */
67
+ /* *
68
+ * Adds an attribute to the layer.
69
+ * The layer will need to be in edit mode. It will only be added to the provider when the edit buffer
70
+ * is committed.
71
+ * \param field the field to add
72
+ * \returns false in case of a name conflict, true in case of success
73
+ */
68
74
bool addAttribute ( const QgsField &field );
69
75
70
- /* * Deletes an attribute (but does not commit it)
71
- \param name attribute name
72
- \returns false in case of a non-existing attribute.*/
76
+ /* *
77
+ * Deletes an attribute.
78
+ * The layer will need to be in edit mode. It will only be added to the provider when the edit buffer
79
+ * is committed.
80
+ * \param name attribute name
81
+ * \returns false in case of a non-existing attribute.
82
+ */
73
83
bool deleteAttribute ( int attr );
74
84
75
85
// ! Adds a properties page factory to the vector layer properties dialog.
@@ -206,8 +216,5 @@ class APP_EXPORT QgsVectorLayerProperties : public QgsOptionsDialogBase, private
206
216
void openPanel ( QgsPanelWidget *panel );
207
217
};
208
218
209
- inline QString QgsVectorLayerProperties::displayName ()
210
- {
211
- return txtDisplayName->text ();
212
- }
219
+
213
220
#endif
0 commit comments