Skip to content
Permalink
Browse files

Remove many deprecated methods

  • Loading branch information
nyalldawson committed Sep 15, 2016
1 parent ccd9cc8 commit fe65063c2b45a18dd8f9d94140578c15e7f91c1c
Showing with 326 additions and 1,755 deletions.
  1. +164 −1 doc/api_break.dox
  2. +0 −66 python/core/dxf/qgsdxfexport.sip
  3. +0 −19 python/core/layertree/qgslayertreemodel.sip
  4. +0 −5 python/core/qgsactionmanager.sip
  5. +0 −12 python/core/qgscachedfeatureiterator.sip
  6. +0 −28 python/core/qgsdatadefined.sip
  7. +0 −13 python/core/qgsdiagramrenderer.sip
  8. +4 −27 python/core/qgsdistancearea.sip
  9. +0 −9 python/core/qgsmaplayerregistry.sip
  10. +38 −40 python/core/qgsmaptopixel.sip
  11. +0 −19 python/core/qgsnetworkaccessmanager.sip
  12. +0 −2 python/core/qgsowsconnection.sip
  13. +0 −31 python/core/qgspallabeling.sip
  14. +0 −6 python/core/qgspoint.sip
  15. +0 −23 python/core/qgsproject.sip
  16. +0 −9 python/core/qgssnapper.sip
  17. +1 −4 python/core/qgstolerance.sip
  18. +0 −10 python/core/raster/qgscolorrampshader.sip
  19. +0 −12 python/core/raster/qgsrasterlayer.sip
  20. +0 −1 python/gui/qgisinterface.sip
  21. +0 −32 python/gui/qgsattributedialog.sip
  22. +0 −23 python/gui/qgsattributeform.sip
  23. +0 −4 python/gui/qgsmapcanvasitem.sip
  24. +0 −18 python/gui/qgsmaptool.sip
  25. +0 −22 python/gui/qgsmaptoolcapture.sip
  26. +0 −7 python/gui/qgssublayersdialog.sip
  27. +1 −1 python/plugins/db_manager/dlg_sql_layer_window.py
  28. +1 −1 python/plugins/processing/algs/qgis/RandomPointsPolygonsFixed.py
  29. +1 −1 python/plugins/processing/algs/qgis/RandomPointsPolygonsVariable.py
  30. +1 −1 python/plugins/processing/algs/qgis/SetRasterStyle.py
  31. +1 −1 python/plugins/processing/algs/qgis/SetVectorStyle.py
  32. +1 −1 python/plugins/processing/algs/qgis/SumLines.py
  33. +6 −3 python/plugins/processing/tools/dataobjects.py
  34. +2 −1 python/plugins/processing/tools/vector.py
  35. +1 −2 src/app/legend/qgsapplegendinterface.h
  36. +1 −2 src/app/qgisappinterface.cpp
  37. +1 −3 src/app/qgisappinterface.h
  38. +2 −77 src/core/dxf/qgsdxfexport.cpp
  39. +0 −68 src/core/dxf/qgsdxfexport.h
  40. +0 −11 src/core/layertree/qgslayertreemodel.cpp
  41. +0 −19 src/core/layertree/qgslayertreemodel.h
  42. +0 −5 src/core/qgsactionmanager.cpp
  43. +0 −5 src/core/qgsactionmanager.h
  44. +0 −11 src/core/qgscachedfeatureiterator.cpp
  45. +0 −12 src/core/qgscachedfeatureiterator.h
  46. +0 −37 src/core/qgsdatadefined.cpp
  47. +0 −28 src/core/qgsdatadefined.h
  48. +0 −5 src/core/qgsdiagramrenderer.cpp
  49. +0 −13 src/core/qgsdiagramrenderer.h
  50. +0 −170 src/core/qgsdistancearea.cpp
  51. +5 −26 src/core/qgsdistancearea.h
  52. +1 −2 src/core/qgsexpressionfieldbuffer.cpp
  53. +1 −7 src/core/qgsexpressionfieldbuffer.h
  54. +0 −9 src/core/qgsmaplayerregistry.h
  55. +21 −100 src/core/qgsmaptopixel.cpp
  56. +26 −53 src/core/qgsmaptopixel.h
  57. +0 −15 src/core/qgsnetworkaccessmanager.cpp
  58. +0 −19 src/core/qgsnetworkaccessmanager.h
  59. +0 −5 src/core/qgsowsconnection.cpp
  60. +0 −3 src/core/qgsowsconnection.h
  61. +0 −24 src/core/qgspallabeling.cpp
  62. +2 −35 src/core/qgspallabeling.h
  63. +0 −5 src/core/qgspoint.cpp
  64. +0 −6 src/core/qgspoint.h
  65. +0 −7 src/core/qgsproject.cpp
  66. +0 −23 src/core/qgsproject.h
  67. +0 −6 src/core/qgssnapper.cpp
  68. +0 −9 src/core/qgssnapper.h
  69. +2 −5 src/core/qgstolerance.h
  70. +4 −1 src/core/qgsvectorlayer.cpp
  71. +0 −10 src/core/raster/qgscolorrampshader.h
  72. +0 −113 src/core/raster/qgsrasterlayer.cpp
  73. +0 −12 src/core/raster/qgsrasterlayer.h
  74. +0 −1 src/gui/attributetable/qgsattributetabledelegate.cpp
  75. +0 −2 src/gui/qgisinterface.h
  76. +0 −12 src/gui/qgsattributedialog.cpp
  77. +0 −32 src/gui/qgsattributedialog.h
  78. +0 −6 src/gui/qgsattributeform.cpp
  79. +0 −24 src/gui/qgsattributeform.h
  80. +0 −1 src/gui/qgshtmlannotationitem.cpp
  81. +2 −9 src/gui/qgsmapcanvasitem.cpp
  82. +0 −9 src/gui/qgsmapcanvasitem.h
  83. +0 −14 src/gui/qgsmaptool.cpp
  84. +0 −17 src/gui/qgsmaptool.h
  85. +0 −17 src/gui/qgsmaptoolcapture.cpp
  86. +0 −24 src/gui/qgsmaptoolcapture.h
  87. +0 −71 src/gui/qgssublayersdialog.cpp
  88. +0 −7 src/gui/qgssublayersdialog.h
  89. +1 −1 src/plugins/gps_importer/qgsgpsplugin.cpp
  90. +0 −2 src/providers/gdal/qgsgdaldataitems.h
  91. +6 −7 src/server/qgsmaprenderer.cpp
  92. +1 −39 tests/src/core/testqgsdistancearea.cpp
  93. +20 −36 tests/src/core/testqgsmaptopixel.cpp
  94. +1 −1 tests/src/core/testqgssnappingutils.cpp
  95. +7 −7 tests/src/python/test_qgsdistancearea.py
@@ -266,7 +266,8 @@ corresponding counterparts in QgsUnitTypes should be used instead.</li>
\subsection qgis_api_break_3_0_QgisInterface QgisInterface

<ul>
<li>fileMenu() has been removed, use projectMenu() instead.
<li>fileMenu() has been removed, use projectMenu() instead.</li>
<li>actionRemoveLayer was removed as it no longer exists.</li>
</ul>

\subsection qgis_api_break_3_0_QgsAnnotation QgsAnnotation
@@ -283,6 +284,7 @@ corresponding counterparts in QgsUnitTypes should be used instead.</li>
<li>The doAction() variant which takes a QgsFeature along has been removed. Use the expression context
variant instead.</li>
<li>expandAction() has been removed. Use QgsExpression::replaceExpressionText() instead.</li>
<li>setPythonExecute() was removed. Initialize QgsPythonRunner instead.</li>
</ul>

\subsection qgis_api_break_3_0_QgsAdvancedDigitizingDockWidget QgsAdvancedDigitizingDockWidget
@@ -306,6 +308,22 @@ and setSortKeyAttributeName() instead.</li>
<li>currentFeature() was removed. Use feature() instead.</li>
</ul>

\subsection qgis_api_break_3_0_QgsAttributeDialog QgsAttributeDialog

<ul>
<li>The constructor for QgsAttributeDialog has changed</li>
<li>dialog() was removed - just use the object directly.</li>
<li>setIsAddDialog() was removed. Use setMode() instead.</li>
</ul>

\subsection qgis_api_break_3_0_QgsAttributeForm QgsAttributeForm

<ul>
<li>setIsAddDialog() was removed. Use setMode() instead.</li>
<li>accept() was removed. Use save() instead.</li>
<li>reject() was removed. Use resetValues() instead.</li>
</ul>

\subsection qgis_api_break_3_0_QgsAuthConfigUriEdit QgsAuthConfigUriEdit

<ul>
@@ -318,6 +336,11 @@ and setSortKeyAttributeName() instead.</li>
<li>GenericDataSourceURI has been renamed to GenericDataSourceUri</li>
</ul>

\subsection qgis_api_break_3_0_QgsQgsCachedFeatureIterator QgsCachedFeatureIterator
<ul>
<li>The constructor for QgsCachedFeatureIterator has changed.</li>
</ul>

\subsection qgis_api_break_3_0_QgsCategorizedSymbolRendererWidget QgsCategorizedSymbolRendererWidget
<ul>
<li>sizeScaleFieldChanged() and scaleMethodChanged() were removed. These settings are no longer exposed in the widget's GUI.</li>
@@ -337,6 +360,12 @@ and the new ramp can be retrieved after executing the dialog by calling ramp().<
<li>Some internal methods which were previously public or protected were made private.</li>
</ul>

\subsection qgis_api_break_3_0_QgsColorRampShader QgsColorRampShader

<ul>
<li>maximumColorCacheSize() and setMaximumColorCacheSize() were no longer used and are removed.</li>
</ul>

\subsection qgis_api_break_3_0_QgsComposerArrow QgsComposerArrow

<ul>
@@ -547,6 +576,10 @@ and the new ramp can be retrieved after executing the dialog by calling ramp().<
<ul>
<li>expressionParams(), setExpressionParams() and insertExpressionParam() have been removed.
QgsExpressionContext variables should be used in their place.</li>
<li>prepareExpression( QgsVectorLayer* layer ) and prepareExpression( const QgsFields &fields )
were removed. Use QgsExpressionContext variant instead.</li>
<li>referencedColumns( QgsVectorLayer* layer ) and referencedColumns( const QgsFields& fields )
were removed. Use QgsExpressionContext variant instead.</li>
</ul>

\subsection qgis_api_break_3_0_QgsDataDefinedButton QgsDataDefinedButton
@@ -597,6 +630,12 @@ Use renderDiagram( const QgsFeature& feature, QgsRenderContext& c, const QgsDiag
Use diagramSize( const QgsFeature& feature, const QgsRenderContext& c, const QgsDiagramSettings& s, const QgsDiagramInterpolationSettings& is ) instead.
</ul>

\subsection qgis_api_break_3_0_QgsDiagramRenderer QgsDiagramRenderer

<ul>
<li>xform, fields were no longer required and are removed.</li>
</ul>

\subsection qgis_api_break_3_0_QgsDiagramLayerSettings QgsDiagramLayerSettings

<ul>
@@ -607,6 +646,33 @@ place of a null pointer.</li>
<li>The ct member has been removed. Use coordinateTransform() and setCoordinateTransform() instead.
</ul>

\subsection qgis_api_break_3_0_QgsDiagramSettings QgsDiagramSettings

<ul>
<li>The SizeType enum was removed. Use QgsUnitTypes.RenderUnit instead.</li>
</ul>

\subsection qgis_api_break_3_0_QgsDistanceArea QgsDistanceArea

<ul>
<li>sourceCrs() now returns a QgsCoordinateReferenceSystem instead of the crs ID.</li>
<li>measure() has been removed. Use measureArea() or measureLength() instead.</li>
<li>textUnit() was removed. Use formatDistance() or formatArea() instead.</li>
<li>convertMeasurement was removed. Use QgsUnitTypes for conversion instead.</li>
</ul>

\subsection qgis_api_break_3_0_QgsDxfExport QgsDxfExport

<ul>
<li>The writeGroup() method taking a QgsPoint argument was removed. Use the version which takes a QgsPointV2 instead.</li>
<li>The writePolyline() method taking a QgsPolyline argument was removed. Use the alternative version instead.</li>
<li>The writePolygon() method taking a QgsPolygon argument was removed. Use the version which takes a QgsRingSequence instead.</li>
<li>writeSolid() was removed. Use writePolygon() instead.</li>
<li>The signature for writeLine() has changed.</li>
<li>writePoint(), writeFilledCircle(), writeCircle(), writeText() and writeMText() now take QgsPointV2 arguments</li>

</ul>

\subsection qgis_api_break_3_0_QgsEditFormConfig QgsEditFormConfig

<ul>
@@ -772,6 +838,10 @@ plugins calling this method will need to be updated.</li>

<ul>
<li>init(QgsMapRenderer*) has been removed. Use init(const QgsMapSettings&) instead.</li>
<li>&layer() was removed. use QgsPalLayerSettings::fromLayer() instead.</li>
<li>addDiagramLayer() was removed. Use prepareDiagramLayer() instead.</li>
<li>labelsAtPosition() was removed. Use takeResults() and methods of QgsLabelingResults instead.</li>
<li>labelsWithinRect() was removed. Use takeResults() and methods of QgsLabelingResults.</li>
</ul>

\subsection qgis_api_break_3_0_QgsLayerTreeGroup QgsLayerTreeGroup
@@ -780,6 +850,20 @@ plugins calling this method will need to be updated.</li>
<li>readChildrenFromXML() has been renamed to readChildrenFromXml()</li>
</ul>

\subsection qgis_api_break_3_0_QgsLayerTreeMode QgsLayerTreeModel

<ul>
<li>The ShowSymbology flag was removed. Use ShowLegend instead.</li>
<li>The AllowSymbologyChangeState flag was removed. Use AllowLegendChangeState instead.</li>
<li>legendFilterByMap() was renamed to legendFilterMapSettings()</li>
<li>isIndexSymbologyNode() was removed. Use index2legendNode() instead.</li>
<li>layerNodeForSymbologyNode() was removed. Use index2legendNode()->parent() instead.</li>
<li>refreshLayerSymbology() was removed. Use refreshLayerLegend() instead.</li>
<li>setAutoCollapseSymbologyNodes() was removed. Use setAutoCollapseLegendNodes() instead.</li>
<li>autoCollapseSymbologyNodes() was removed. Use autoCollapseLegendNodes() instead.</li>
</ul>


\subsection qgis_api_break_3_0_QgsLayerTreeNode QgsLayerTreeNode

<ul>
@@ -812,6 +896,12 @@ and the new ramp can be retrieved after executing the dialog by calling ramp().<
<li>setProgress() signal has been removed. It was not emitted since 2.0.</li>
</ul>

\subsection qgis_api_break_3_0_QgsMapCanvasItem QgsMapCanvasItem

<ul>
<li>setPanningOffset() was removed.</li>
</ul>

\subsection qgis_api_break_3_0_QgsMapLayer QgsMapLayer

<ul>
@@ -834,6 +924,12 @@ screenUpdateRequested() were removed. These members have had no effect for a num
<li>writeLayerXML() was renamed to writeLayerXml()</li>
</ul>

\subsection qgis_api_break_3_0_QgsMapLayerRegistry QgsMapLayerRegistry

<ul>
<li>clearAllLayerCaches() was removed. This method has had no effect since QGIS 2.4</li>
</ul>

\subsection qgis_api_break_3_0_QgsMapOverviewCanvas QgsMapOverviewCanvas

<ul>
@@ -858,6 +954,27 @@ be used instead of a null pointer if no transformation is required.</li>
<li>drawOldLabeling(), drawNewLabeling() were removed. The method drawLabeling() should be used instead.</li>
</ul>

\subsection qgis_api_break_3_0_QgsMapTool QgsMapTool

<ul>
<li>renderComplete() was removed. Map tools must not directly depend on rendering progress.</li>
<li>isTransient() and isEditTool() were removed. Use flags() instead.</li>
</ul>

\subsection qgis_api_break_3_0_QgsMapToolCapture QgsMapToolCapture

<ul>
<li>The nextPoint() method taking a QgsPoint was removed. Use the version taking a QgsPointV2 instead.</li>
</ul>

\subsection qgis_api_break_3_0_QgsMapToPixel QgsMapToPixel

<ul>
<li>The constructor now uses the map center x and y, and requires both height and width in pixels and a rotation value</li>
<li>setYMaximum(), setYMinimum(), setXMinimum() were removed. Use setParameters() instead</li>

</ul>

\subsection qgis_api_break_3_0_QgsMapToPixelGeometrySimplifier QgsMapToPixelGeometrySimplifier

The whole class has been refactored to stop using WKB and to use QgsAbstractGeometry classes.
@@ -887,12 +1004,26 @@ plugins calling this method will need to be updated.</li>
<li>Constructor taking QgsLayerItem argument has been removed. Use QgsDataItem::mimeUri() instead.</li>
</ul>

\subsection qgis_api_break_3_0_QgsNetworkAccessManager QgsNetworkAccessManager

<ul>
<li>sendGet() was removed. Use get() directly.</li>
<li>deleteReply() was removed. Use abort() and deleteLayer() on the reply directly.</li>
<li>requestSent signal was removed. This is no longer emitted.</li>
</ul>

\subsection qgis_api_break_3_0_QgsOSMElement QgsOSMElement

<ul>
<li>elemID() has been renamed to elemId()</li>
</ul>

\subsection qgis_api_break_3_0_QgsOwsConnection QgsOwsConnection

<ul>
<li>connectionInfo() was removed.</li>
</ul>

\subsection qgis_api_break_3_0_QgsOWSSourceSelect QgsOWSSourceSelect

<ul>
@@ -923,6 +1054,12 @@ and for forcing certain items to always sort on top.</li>
<ul>
<li>init(QgsMapRenderer*) has been removed. Use init(const QgsMapSettings&) instead.</li>
<li>prepareGeometry and geometryRequiresPreparation now take geometry references, not pointers.</li>
<li>layer() was removed. If direct access to QgsPalLayerSettings is necessary, use QgsPalLayerSettings::fromLayer()</li>
<li>candidates() was removed.</li>
<li>addDiagramLayer() was removed. Use prepareDiagramLayer() instead.</li>
<li>labelsAtPosition() was removed. Use takeResults() and methods of QgsLabelingResults instead.</li>
<li>labelsWithinRect() was removed. Use takeResults() and methods of QgsLabelingResults instead.</li>
<li>isStoredWithProject() and setStoredWithProject() had no effect and were removed.</li>
</ul>

\subsection qgis_api_break_3_0_QgsPalLayerSettings QgsPalLayerSettings
@@ -948,6 +1085,9 @@ plugins calling this method will need to be updated.</li>

<ul>
<li>visibilityPresetCollection() has been renamed to mapThemeCollection()</li>
<li>title( const QString & title ) was removed. Use setTitle() instead.</li>
<li>dirty( bool b ) was removed. Use setDirty() instead.</li>
<li>clearProperties() was removed. Use clear() instead.</li>
</ul>

\subsection qgis_api_break_3_0_QgsRasterCalcNode QgsRasterCalcNode
@@ -974,6 +1114,14 @@ plugins calling this method will need to be updated.</li>
<li>block() has new "feedback" argument.</li>
</ul>

\subsection qgis_api_break_3_0_QgsRasterLayer QgsRasterLayer

<ul>
<li>setDrawingStyle() was removed. Use setRendererForDrawingStyle() or setRenderer() instead.</li>
<li>previewAsPixmap() was removed. Use previewAsImage() instead.</li>
<li>updateProgress() had no effect and was removed.</li>
</ul>

\subsection qgis_api_break_3_0_QgsRasterProjector QgsRasterProjector

<ul>
@@ -1053,6 +1201,14 @@ be returned instead of a null pointer if no transformation is required.</li>

<ul>
<li>Constructor variant with QgsMapRenderer has been removed. Use the variant with QgsMapSettings.</li>
<li>Signature for snapPoint() has changed.</li>
</ul>

\subsection qgis_api_break_3_0_QgsSublayersDialog QgsSublayersDialog

<ul>
<li>populateLayerTable() now takes a list of QgsSublayersDialog.LayerDefinition values</li>
<li>selectionNames() and selectionIndexes() were removed. Use selection().</li>
</ul>

\subsection qgis_api_break_3_0_QgsSvgCache QgsSvgCache
@@ -1119,6 +1275,7 @@ than an integer value</li>

<ul>
<li>vertexSearchRadius(), defaultTolerance(), toleranceInMapUnits() do not have variant with QgsMapRenderer anymore. Use the variants with QgsMapSettings.</li>
<li>The MapUnits UnitType was removed. Use LayerUnits or ProjectUnits instead.</li>
</ul>

\subsection qgis_api_break_3_0_QgsTreeWidgetItem QgsTreeWidgetItem
@@ -1145,6 +1302,12 @@ Radians (to AngleRadians), Gon (to AngleGon), MinutesOfArc (to AngleMinutesOfArc
SecondsOfArc (to AngleSecondsOfArc), Turn (to AngleTurn) and UnknownAngleUnit to AngleUnknownUnit</li>
</ul>

\subsection qgis_api_break_3_0_QgsVector QgsVector

<ul>
<li>normal() was removed. Use normalized() instead.</li>
</ul>

\subsection qgis_api_break_3_0_QgsVectorDataProvider QgsVectorDataProvider

<ul>

0 comments on commit fe65063

Please sign in to comment.
You can’t perform that action at this time.