You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Smarter default edit widgets with plugins to pick them
Now the widgets factories can give a score on how good they could handle
a widget.
Additionaly, plugins can be added to choose a widget factory in function
of an external information. One of them uses a table in PostgresQL to
allow specification of the widget type and configuration.
I took the opportunity to remove a few deprecated method in relation to
this.
<li>widgetType() and widgetConfig() now reflect only the user configured values.
511
+
QgsEditorWidgetRegistry::instance()->findBest() must be used instead.</li>
512
+
<li>widgetType(), widgetConfig(), setWidgetType(), setWidgetConfig() and removeWidgetConfig() now only take a string as first parameter. Access by index has been removed.</li>
@@ -847,6 +857,14 @@ plugins calling this method will need to be updated.</li>
847
857
848
858
<ul>
849
859
<li>setMapRenderer() has been removed. Use setMapSettings() instead.</li>
860
+
<li>excludeAttributesWMS() and setExcludeAttributesWMS() have been renamed to excludeAttributesWms() and
861
+
setExcludeAttributesWms()</li>
862
+
<li>excludeAttributesWFS() and setExcludeAttributesWFS() have been renamed to excludeAttributesWfs() and
863
+
setExcludeAttributesWfs()</li>
864
+
<li>editorWidgetV2() and editorWidgetV2Config() have been removed and QgsEditorWidgetRegistry::instance()->findBest() must be used instead.</li>
865
+
<li>setEditorWidgetV2(), setEditorWidgetV2Config() have been removed and their equivalent in editFormConfig() must be used instead.</li>
866
+
<li>setCheckedState() is removed. Use editFormConfig()->setWidgetConfig()` instead.</li>
867
+
<li>valueMap(), valueRelation(), dateFormat(), widgetSize() have been removed. Use QgsEditorWidgetRegistry::instance()->findBest().config() instead.</li>
0 commit comments