Skip to content
Permalink
Browse files

Merge pull request #3494 from nyalldawson/deprecated

Remove remaining deprecated methods
  • Loading branch information
nyalldawson committed Sep 16, 2016
2 parents a9105b7 + 2a9e520 commit 7f9cc87f8565b48124ca626e0b4d50ac636004d8
Showing with 353 additions and 1,988 deletions.
  1. +165 −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. +1 −1 python/core/qgsvectordataprovider.sip
  19. +0 −10 python/core/raster/qgscolorrampshader.sip
  20. +0 −12 python/core/raster/qgsrasterlayer.sip
  21. +0 −1 python/gui/gui.sip
  22. +0 −1 python/gui/qgisinterface.sip
  23. +0 −32 python/gui/qgsattributedialog.sip
  24. +0 −36 python/gui/qgsattributeeditor.sip
  25. +0 −23 python/gui/qgsattributeform.sip
  26. +0 −4 python/gui/qgsmapcanvasitem.sip
  27. +0 −18 python/gui/qgsmaptool.sip
  28. +0 −22 python/gui/qgsmaptoolcapture.sip
  29. +0 −7 python/gui/qgssublayersdialog.sip
  30. +1 −1 python/plugins/db_manager/dlg_sql_layer_window.py
  31. +1 −1 python/plugins/processing/algs/qgis/RandomPointsPolygonsFixed.py
  32. +1 −1 python/plugins/processing/algs/qgis/RandomPointsPolygonsVariable.py
  33. +1 −1 python/plugins/processing/algs/qgis/SetRasterStyle.py
  34. +1 −1 python/plugins/processing/algs/qgis/SetVectorStyle.py
  35. +1 −1 python/plugins/processing/algs/qgis/SumLines.py
  36. +6 −3 python/plugins/processing/tools/dataobjects.py
  37. +2 −1 python/plugins/processing/tools/vector.py
  38. +1 −2 src/app/legend/qgsapplegendinterface.h
  39. +1 −2 src/app/qgisappinterface.cpp
  40. +1 −3 src/app/qgisappinterface.h
  41. +15 −11 src/app/qgsmergeattributesdialog.cpp
  42. +2 −77 src/core/dxf/qgsdxfexport.cpp
  43. +0 −68 src/core/dxf/qgsdxfexport.h
  44. +0 −11 src/core/layertree/qgslayertreemodel.cpp
  45. +0 −19 src/core/layertree/qgslayertreemodel.h
  46. +0 −5 src/core/qgsactionmanager.cpp
  47. +0 −5 src/core/qgsactionmanager.h
  48. +0 −11 src/core/qgscachedfeatureiterator.cpp
  49. +0 −12 src/core/qgscachedfeatureiterator.h
  50. +0 −37 src/core/qgsdatadefined.cpp
  51. +0 −28 src/core/qgsdatadefined.h
  52. +0 −5 src/core/qgsdiagramrenderer.cpp
  53. +0 −13 src/core/qgsdiagramrenderer.h
  54. +0 −170 src/core/qgsdistancearea.cpp
  55. +5 −26 src/core/qgsdistancearea.h
  56. +1 −2 src/core/qgsexpressionfieldbuffer.cpp
  57. +1 −7 src/core/qgsexpressionfieldbuffer.h
  58. +0 −9 src/core/qgsmaplayerregistry.h
  59. +21 −100 src/core/qgsmaptopixel.cpp
  60. +26 −53 src/core/qgsmaptopixel.h
  61. +0 −15 src/core/qgsnetworkaccessmanager.cpp
  62. +0 −19 src/core/qgsnetworkaccessmanager.h
  63. +0 −5 src/core/qgsowsconnection.cpp
  64. +0 −3 src/core/qgsowsconnection.h
  65. +0 −24 src/core/qgspallabeling.cpp
  66. +2 −35 src/core/qgspallabeling.h
  67. +0 −5 src/core/qgspoint.cpp
  68. +0 −6 src/core/qgspoint.h
  69. +0 −7 src/core/qgsproject.cpp
  70. +0 −23 src/core/qgsproject.h
  71. +0 −6 src/core/qgssnapper.cpp
  72. +0 −9 src/core/qgssnapper.h
  73. +2 −5 src/core/qgstolerance.h
  74. +1 −1 src/core/qgsvectordataprovider.h
  75. +4 −1 src/core/qgsvectorlayer.cpp
  76. +0 −10 src/core/raster/qgscolorrampshader.h
  77. +0 −113 src/core/raster/qgsrasterlayer.cpp
  78. +0 −12 src/core/raster/qgsrasterlayer.h
  79. +0 −2 src/gui/CMakeLists.txt
  80. +0 −1 src/gui/attributetable/qgsattributetabledelegate.cpp
  81. +0 −2 src/gui/qgisinterface.h
  82. +0 −12 src/gui/qgsattributedialog.cpp
  83. +0 −32 src/gui/qgsattributedialog.h
  84. +0 −93 src/gui/qgsattributeeditor.cpp
  85. +0 −86 src/gui/qgsattributeeditor.h
  86. +0 −6 src/gui/qgsattributeform.cpp
  87. +0 −24 src/gui/qgsattributeform.h
  88. +9 −2 src/gui/qgsformannotationitem.cpp
  89. +0 −1 src/gui/qgshtmlannotationitem.cpp
  90. +2 −9 src/gui/qgsmapcanvasitem.cpp
  91. +0 −9 src/gui/qgsmapcanvasitem.h
  92. +0 −14 src/gui/qgsmaptool.cpp
  93. +0 −17 src/gui/qgsmaptool.h
  94. +0 −17 src/gui/qgsmaptoolcapture.cpp
  95. +0 −24 src/gui/qgsmaptoolcapture.h
  96. +0 −71 src/gui/qgssublayersdialog.cpp
  97. +0 −7 src/gui/qgssublayersdialog.h
  98. +1 −1 src/plugins/gps_importer/qgsgpsplugin.cpp
  99. +0 −2 src/providers/gdal/qgsgdaldataitems.h
  100. +6 −7 src/server/qgsmaprenderer.cpp
  101. +1 −39 tests/src/core/testqgsdistancearea.cpp
  102. +20 −36 tests/src/core/testqgsmaptopixel.cpp
  103. +1 −1 tests/src/core/testqgssnappingutils.cpp
  104. +7 −7 tests/src/python/test_qgsdistancearea.py
@@ -178,6 +178,7 @@ This page tries to maintain a list with incompatible changes that happened in pr

<ul>
<li>QgsAttributeAction was removed, and replaced by QgsActionManager.</li>
<li>QgsAttributeEditor was removed. Use QgsEditorWidgetRegistry::create() instead.</li>
<li>QgsColorbutton was removed. QgsColorButtonV2 has now been renamed to QgsColorButton. Hence, QgsColorButtonV2 does not exist anymore.</li>
<li>QgsColorDialog was removed, and QgsColorDialogV2 was renamed to QgsColorDialog. Hence, QgsColorButtonV2 does not exist anymore.
All the functionality from the old QgsColorDialog has been moved to the new class.</li>
@@ -266,7 +267,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 +285,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 +309,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 +337,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 +361,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 +577,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 +631,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 +647,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 +839,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 +851,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 +897,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>
@@ -836,6 +927,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>
@@ -860,6 +957,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.
@@ -889,12 +1007,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>
@@ -925,6 +1057,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
@@ -956,6 +1094,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
@@ -982,6 +1123,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>
@@ -1061,6 +1210,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
@@ -1127,6 +1284,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
@@ -1153,6 +1311,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 7f9cc87

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