[Qgis-developer] deprecated methods

Jürgen E. Fischer jef at norbit.de
Thu May 5 11:57:32 PDT 2016


Hi Worth,

On Thu, 05. May 2016 at 12:57:10 -0400, Worth Lutz wrote:
> When trying to convert to the suggested new methods, they seem to
> not be available.
> 
> for example:  Q_DECL_DEPRECATED void QgsVectorLayer::setEditorWidgetV2
> suggests "Use editFormConfig()->setWidgetType() instead".

> The method, "editFormConfig", does not seem to be available in QGIS
> v2.8 on my Ubuntu machine.

setEditorWidgetV2 is not deprecated in 2.8 [0] it deprecated in 2.14 [1] and
there editFormConfig() is available [2].   There should be a "added in" note -
but that's apparently missing for editFormConfig().


Jürgen


[0] http://qgis.org/api/2.8/classQgsVectorLayer.html#a05a33f4d4f9953571f680f6b18589559
[1] http://qgis.org/api/2.14/classQgsVectorLayer.html#a3ead0bb00ccad05b556a0602f48350bf
[2] http://qgis.org/api/2.14/classQgsVectorLayer.html#ae89009b6dc6f544d19123a2f311acfe4


-- 
Jürgen E. Fischer           norBIT GmbH             Tel. +49-4931-918175-31
Dipl.-Inf. (FH)             Rheinstraße 13          Fax. +49-4931-918175-50
Software Engineer           D-26506 Norden             http://www.norbit.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160505/2d51a416/attachment.sig>


More information about the Qgis-developer mailing list