@@ -266,7 +266,8 @@ corresponding counterparts in QgsUnitTypes should be used instead.</li>
266
266
\subsection qgis_api_break_3_0_QgisInterface QgisInterface
267
267
268
268
<ul>
269
- <li>fileMenu() has been removed, use projectMenu() instead.
269
+ <li>fileMenu() has been removed, use projectMenu() instead.</li>
270
+ <li>actionRemoveLayer was removed as it no longer exists.</li>
270
271
</ul>
271
272
272
273
\subsection qgis_api_break_3_0_QgsAnnotation QgsAnnotation
@@ -283,6 +284,7 @@ corresponding counterparts in QgsUnitTypes should be used instead.</li>
283
284
<li>The doAction() variant which takes a QgsFeature along has been removed. Use the expression context
284
285
variant instead.</li>
285
286
<li>expandAction() has been removed. Use QgsExpression::replaceExpressionText() instead.</li>
287
+ <li>setPythonExecute() was removed. Initialize QgsPythonRunner instead.</li>
286
288
</ul>
287
289
288
290
\subsection qgis_api_break_3_0_QgsAdvancedDigitizingDockWidget QgsAdvancedDigitizingDockWidget
@@ -306,6 +308,22 @@ and setSortKeyAttributeName() instead.</li>
306
308
<li>currentFeature() was removed. Use feature() instead.</li>
307
309
</ul>
308
310
311
+ \subsection qgis_api_break_3_0_QgsAttributeDialog QgsAttributeDialog
312
+
313
+ <ul>
314
+ <li>The constructor for QgsAttributeDialog has changed</li>
315
+ <li>dialog() was removed - just use the object directly.</li>
316
+ <li>setIsAddDialog() was removed. Use setMode() instead.</li>
317
+ </ul>
318
+
319
+ \subsection qgis_api_break_3_0_QgsAttributeForm QgsAttributeForm
320
+
321
+ <ul>
322
+ <li>setIsAddDialog() was removed. Use setMode() instead.</li>
323
+ <li>accept() was removed. Use save() instead.</li>
324
+ <li>reject() was removed. Use resetValues() instead.</li>
325
+ </ul>
326
+
309
327
\subsection qgis_api_break_3_0_QgsAuthConfigUriEdit QgsAuthConfigUriEdit
310
328
311
329
<ul>
@@ -318,6 +336,11 @@ and setSortKeyAttributeName() instead.</li>
318
336
<li>GenericDataSourceURI has been renamed to GenericDataSourceUri</li>
319
337
</ul>
320
338
339
+ \subsection qgis_api_break_3_0_QgsQgsCachedFeatureIterator QgsCachedFeatureIterator
340
+ <ul>
341
+ <li>The constructor for QgsCachedFeatureIterator has changed.</li>
342
+ </ul>
343
+
321
344
\subsection qgis_api_break_3_0_QgsCategorizedSymbolRendererWidget QgsCategorizedSymbolRendererWidget
322
345
<ul>
323
346
<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().<
337
360
<li>Some internal methods which were previously public or protected were made private.</li>
338
361
</ul>
339
362
363
+ \subsection qgis_api_break_3_0_QgsColorRampShader QgsColorRampShader
364
+
365
+ <ul>
366
+ <li>maximumColorCacheSize() and setMaximumColorCacheSize() were no longer used and are removed.</li>
367
+ </ul>
368
+
340
369
\subsection qgis_api_break_3_0_QgsComposerArrow QgsComposerArrow
341
370
342
371
<ul>
@@ -547,6 +576,10 @@ and the new ramp can be retrieved after executing the dialog by calling ramp().<
547
576
<ul>
548
577
<li>expressionParams(), setExpressionParams() and insertExpressionParam() have been removed.
549
578
QgsExpressionContext variables should be used in their place.</li>
579
+ <li>prepareExpression( QgsVectorLayer* layer ) and prepareExpression( const QgsFields &fields )
580
+ were removed. Use QgsExpressionContext variant instead.</li>
581
+ <li>referencedColumns( QgsVectorLayer* layer ) and referencedColumns( const QgsFields& fields )
582
+ were removed. Use QgsExpressionContext variant instead.</li>
550
583
</ul>
551
584
552
585
\subsection qgis_api_break_3_0_QgsDataDefinedButton QgsDataDefinedButton
@@ -597,6 +630,12 @@ Use renderDiagram( const QgsFeature& feature, QgsRenderContext& c, const QgsDiag
597
630
Use diagramSize( const QgsFeature& feature, const QgsRenderContext& c, const QgsDiagramSettings& s, const QgsDiagramInterpolationSettings& is ) instead.
598
631
</ul>
599
632
633
+ \subsection qgis_api_break_3_0_QgsDiagramRenderer QgsDiagramRenderer
634
+
635
+ <ul>
636
+ <li>xform, fields were no longer required and are removed.</li>
637
+ </ul>
638
+
600
639
\subsection qgis_api_break_3_0_QgsDiagramLayerSettings QgsDiagramLayerSettings
601
640
602
641
<ul>
@@ -607,6 +646,33 @@ place of a null pointer.</li>
607
646
<li>The ct member has been removed. Use coordinateTransform() and setCoordinateTransform() instead.
608
647
</ul>
609
648
649
+ \subsection qgis_api_break_3_0_QgsDiagramSettings QgsDiagramSettings
650
+
651
+ <ul>
652
+ <li>The SizeType enum was removed. Use QgsUnitTypes.RenderUnit instead.</li>
653
+ </ul>
654
+
655
+ \subsection qgis_api_break_3_0_QgsDistanceArea QgsDistanceArea
656
+
657
+ <ul>
658
+ <li>sourceCrs() now returns a QgsCoordinateReferenceSystem instead of the crs ID.</li>
659
+ <li>measure() has been removed. Use measureArea() or measureLength() instead.</li>
660
+ <li>textUnit() was removed. Use formatDistance() or formatArea() instead.</li>
661
+ <li>convertMeasurement was removed. Use QgsUnitTypes for conversion instead.</li>
662
+ </ul>
663
+
664
+ \subsection qgis_api_break_3_0_QgsDxfExport QgsDxfExport
665
+
666
+ <ul>
667
+ <li>The writeGroup() method taking a QgsPoint argument was removed. Use the version which takes a QgsPointV2 instead.</li>
668
+ <li>The writePolyline() method taking a QgsPolyline argument was removed. Use the alternative version instead.</li>
669
+ <li>The writePolygon() method taking a QgsPolygon argument was removed. Use the version which takes a QgsRingSequence instead.</li>
670
+ <li>writeSolid() was removed. Use writePolygon() instead.</li>
671
+ <li>The signature for writeLine() has changed.</li>
672
+ <li>writePoint(), writeFilledCircle(), writeCircle(), writeText() and writeMText() now take QgsPointV2 arguments</li>
673
+
674
+ </ul>
675
+
610
676
\subsection qgis_api_break_3_0_QgsEditFormConfig QgsEditFormConfig
611
677
612
678
<ul>
@@ -772,6 +838,10 @@ plugins calling this method will need to be updated.</li>
772
838
773
839
<ul>
774
840
<li>init(QgsMapRenderer*) has been removed. Use init(const QgsMapSettings&) instead.</li>
841
+ <li>&layer() was removed. use QgsPalLayerSettings::fromLayer() instead.</li>
842
+ <li>addDiagramLayer() was removed. Use prepareDiagramLayer() instead.</li>
843
+ <li>labelsAtPosition() was removed. Use takeResults() and methods of QgsLabelingResults instead.</li>
844
+ <li>labelsWithinRect() was removed. Use takeResults() and methods of QgsLabelingResults.</li>
775
845
</ul>
776
846
777
847
\subsection qgis_api_break_3_0_QgsLayerTreeGroup QgsLayerTreeGroup
@@ -780,6 +850,20 @@ plugins calling this method will need to be updated.</li>
780
850
<li>readChildrenFromXML() has been renamed to readChildrenFromXml()</li>
781
851
</ul>
782
852
853
+ \subsection qgis_api_break_3_0_QgsLayerTreeMode QgsLayerTreeModel
854
+
855
+ <ul>
856
+ <li>The ShowSymbology flag was removed. Use ShowLegend instead.</li>
857
+ <li>The AllowSymbologyChangeState flag was removed. Use AllowLegendChangeState instead.</li>
858
+ <li>legendFilterByMap() was renamed to legendFilterMapSettings()</li>
859
+ <li>isIndexSymbologyNode() was removed. Use index2legendNode() instead.</li>
860
+ <li>layerNodeForSymbologyNode() was removed. Use index2legendNode()->parent() instead.</li>
861
+ <li>refreshLayerSymbology() was removed. Use refreshLayerLegend() instead.</li>
862
+ <li>setAutoCollapseSymbologyNodes() was removed. Use setAutoCollapseLegendNodes() instead.</li>
863
+ <li>autoCollapseSymbologyNodes() was removed. Use autoCollapseLegendNodes() instead.</li>
864
+ </ul>
865
+
866
+
783
867
\subsection qgis_api_break_3_0_QgsLayerTreeNode QgsLayerTreeNode
784
868
785
869
<ul>
@@ -812,6 +896,12 @@ and the new ramp can be retrieved after executing the dialog by calling ramp().<
812
896
<li>setProgress() signal has been removed. It was not emitted since 2.0.</li>
813
897
</ul>
814
898
899
+ \subsection qgis_api_break_3_0_QgsMapCanvasItem QgsMapCanvasItem
900
+
901
+ <ul>
902
+ <li>setPanningOffset() was removed.</li>
903
+ </ul>
904
+
815
905
\subsection qgis_api_break_3_0_QgsMapLayer QgsMapLayer
816
906
817
907
<ul>
@@ -834,6 +924,12 @@ screenUpdateRequested() were removed. These members have had no effect for a num
834
924
<li>writeLayerXML() was renamed to writeLayerXml()</li>
835
925
</ul>
836
926
927
+ \subsection qgis_api_break_3_0_QgsMapLayerRegistry QgsMapLayerRegistry
928
+
929
+ <ul>
930
+ <li>clearAllLayerCaches() was removed. This method has had no effect since QGIS 2.4</li>
931
+ </ul>
932
+
837
933
\subsection qgis_api_break_3_0_QgsMapOverviewCanvas QgsMapOverviewCanvas
838
934
839
935
<ul>
@@ -858,6 +954,27 @@ be used instead of a null pointer if no transformation is required.</li>
858
954
<li>drawOldLabeling(), drawNewLabeling() were removed. The method drawLabeling() should be used instead.</li>
859
955
</ul>
860
956
957
+ \subsection qgis_api_break_3_0_QgsMapTool QgsMapTool
958
+
959
+ <ul>
960
+ <li>renderComplete() was removed. Map tools must not directly depend on rendering progress.</li>
961
+ <li>isTransient() and isEditTool() were removed. Use flags() instead.</li>
962
+ </ul>
963
+
964
+ \subsection qgis_api_break_3_0_QgsMapToolCapture QgsMapToolCapture
965
+
966
+ <ul>
967
+ <li>The nextPoint() method taking a QgsPoint was removed. Use the version taking a QgsPointV2 instead.</li>
968
+ </ul>
969
+
970
+ \subsection qgis_api_break_3_0_QgsMapToPixel QgsMapToPixel
971
+
972
+ <ul>
973
+ <li>The constructor now uses the map center x and y, and requires both height and width in pixels and a rotation value</li>
974
+ <li>setYMaximum(), setYMinimum(), setXMinimum() were removed. Use setParameters() instead</li>
975
+
976
+ </ul>
977
+
861
978
\subsection qgis_api_break_3_0_QgsMapToPixelGeometrySimplifier QgsMapToPixelGeometrySimplifier
862
979
863
980
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>
887
1004
<li>Constructor taking QgsLayerItem argument has been removed. Use QgsDataItem::mimeUri() instead.</li>
888
1005
</ul>
889
1006
1007
+ \subsection qgis_api_break_3_0_QgsNetworkAccessManager QgsNetworkAccessManager
1008
+
1009
+ <ul>
1010
+ <li>sendGet() was removed. Use get() directly.</li>
1011
+ <li>deleteReply() was removed. Use abort() and deleteLayer() on the reply directly.</li>
1012
+ <li>requestSent signal was removed. This is no longer emitted.</li>
1013
+ </ul>
1014
+
890
1015
\subsection qgis_api_break_3_0_QgsOSMElement QgsOSMElement
891
1016
892
1017
<ul>
893
1018
<li>elemID() has been renamed to elemId()</li>
894
1019
</ul>
895
1020
1021
+ \subsection qgis_api_break_3_0_QgsOwsConnection QgsOwsConnection
1022
+
1023
+ <ul>
1024
+ <li>connectionInfo() was removed.</li>
1025
+ </ul>
1026
+
896
1027
\subsection qgis_api_break_3_0_QgsOWSSourceSelect QgsOWSSourceSelect
897
1028
898
1029
<ul>
@@ -923,6 +1054,12 @@ and for forcing certain items to always sort on top.</li>
923
1054
<ul>
924
1055
<li>init(QgsMapRenderer*) has been removed. Use init(const QgsMapSettings&) instead.</li>
925
1056
<li>prepareGeometry and geometryRequiresPreparation now take geometry references, not pointers.</li>
1057
+ <li>layer() was removed. If direct access to QgsPalLayerSettings is necessary, use QgsPalLayerSettings::fromLayer()</li>
1058
+ <li>candidates() was removed.</li>
1059
+ <li>addDiagramLayer() was removed. Use prepareDiagramLayer() instead.</li>
1060
+ <li>labelsAtPosition() was removed. Use takeResults() and methods of QgsLabelingResults instead.</li>
1061
+ <li>labelsWithinRect() was removed. Use takeResults() and methods of QgsLabelingResults instead.</li>
1062
+ <li>isStoredWithProject() and setStoredWithProject() had no effect and were removed.</li>
926
1063
</ul>
927
1064
928
1065
\subsection qgis_api_break_3_0_QgsPalLayerSettings QgsPalLayerSettings
@@ -948,6 +1085,9 @@ plugins calling this method will need to be updated.</li>
948
1085
949
1086
<ul>
950
1087
<li>visibilityPresetCollection() has been renamed to mapThemeCollection()</li>
1088
+ <li>title( const QString & title ) was removed. Use setTitle() instead.</li>
1089
+ <li>dirty( bool b ) was removed. Use setDirty() instead.</li>
1090
+ <li>clearProperties() was removed. Use clear() instead.</li>
951
1091
</ul>
952
1092
953
1093
\subsection qgis_api_break_3_0_QgsRasterCalcNode QgsRasterCalcNode
@@ -974,6 +1114,14 @@ plugins calling this method will need to be updated.</li>
974
1114
<li>block() has new "feedback" argument.</li>
975
1115
</ul>
976
1116
1117
+ \subsection qgis_api_break_3_0_QgsRasterLayer QgsRasterLayer
1118
+
1119
+ <ul>
1120
+ <li>setDrawingStyle() was removed. Use setRendererForDrawingStyle() or setRenderer() instead.</li>
1121
+ <li>previewAsPixmap() was removed. Use previewAsImage() instead.</li>
1122
+ <li>updateProgress() had no effect and was removed.</li>
1123
+ </ul>
1124
+
977
1125
\subsection qgis_api_break_3_0_QgsRasterProjector QgsRasterProjector
978
1126
979
1127
<ul>
@@ -1053,6 +1201,14 @@ be returned instead of a null pointer if no transformation is required.</li>
1053
1201
1054
1202
<ul>
1055
1203
<li>Constructor variant with QgsMapRenderer has been removed. Use the variant with QgsMapSettings.</li>
1204
+ <li>Signature for snapPoint() has changed.</li>
1205
+ </ul>
1206
+
1207
+ \subsection qgis_api_break_3_0_QgsSublayersDialog QgsSublayersDialog
1208
+
1209
+ <ul>
1210
+ <li>populateLayerTable() now takes a list of QgsSublayersDialog.LayerDefinition values</li>
1211
+ <li>selectionNames() and selectionIndexes() were removed. Use selection().</li>
1056
1212
</ul>
1057
1213
1058
1214
\subsection qgis_api_break_3_0_QgsSvgCache QgsSvgCache
@@ -1119,6 +1275,7 @@ than an integer value</li>
1119
1275
1120
1276
<ul>
1121
1277
<li>vertexSearchRadius(), defaultTolerance(), toleranceInMapUnits() do not have variant with QgsMapRenderer anymore. Use the variants with QgsMapSettings.</li>
1278
+ <li>The MapUnits UnitType was removed. Use LayerUnits or ProjectUnits instead.</li>
1122
1279
</ul>
1123
1280
1124
1281
\subsection qgis_api_break_3_0_QgsTreeWidgetItem QgsTreeWidgetItem
@@ -1145,6 +1302,12 @@ Radians (to AngleRadians), Gon (to AngleGon), MinutesOfArc (to AngleMinutesOfArc
1145
1302
SecondsOfArc (to AngleSecondsOfArc), Turn (to AngleTurn) and UnknownAngleUnit to AngleUnknownUnit</li>
1146
1303
</ul>
1147
1304
1305
+ \subsection qgis_api_break_3_0_QgsVector QgsVector
1306
+
1307
+ <ul>
1308
+ <li>normal() was removed. Use normalized() instead.</li>
1309
+ </ul>
1310
+
1148
1311
\subsection qgis_api_break_3_0_QgsVectorDataProvider QgsVectorDataProvider
1149
1312
1150
1313
<ul>
0 commit comments