@@ -178,6 +178,7 @@ This page tries to maintain a list with incompatible changes that happened in pr
178
178
179
179
<ul>
180
180
<li>QgsAttributeAction was removed, and replaced by QgsActionManager.</li>
181
+ <li>QgsAttributeEditor was removed. Use QgsEditorWidgetRegistry::create() instead.</li>
181
182
<li>QgsColorbutton was removed. QgsColorButtonV2 has now been renamed to QgsColorButton. Hence, QgsColorButtonV2 does not exist anymore.</li>
182
183
<li>QgsColorDialog was removed, and QgsColorDialogV2 was renamed to QgsColorDialog. Hence, QgsColorButtonV2 does not exist anymore.
183
184
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>
266
267
\subsection qgis_api_break_3_0_QgisInterface QgisInterface
267
268
268
269
<ul>
269
- <li>fileMenu() has been removed, use projectMenu() instead.
270
+ <li>fileMenu() has been removed, use projectMenu() instead.</li>
271
+ <li>actionRemoveLayer was removed as it no longer exists.</li>
270
272
</ul>
271
273
272
274
\subsection qgis_api_break_3_0_QgsAnnotation QgsAnnotation
@@ -283,6 +285,7 @@ corresponding counterparts in QgsUnitTypes should be used instead.</li>
283
285
<li>The doAction() variant which takes a QgsFeature along has been removed. Use the expression context
284
286
variant instead.</li>
285
287
<li>expandAction() has been removed. Use QgsExpression::replaceExpressionText() instead.</li>
288
+ <li>setPythonExecute() was removed. Initialize QgsPythonRunner instead.</li>
286
289
</ul>
287
290
288
291
\subsection qgis_api_break_3_0_QgsAdvancedDigitizingDockWidget QgsAdvancedDigitizingDockWidget
@@ -306,6 +309,22 @@ and setSortKeyAttributeName() instead.</li>
306
309
<li>currentFeature() was removed. Use feature() instead.</li>
307
310
</ul>
308
311
312
+ \subsection qgis_api_break_3_0_QgsAttributeDialog QgsAttributeDialog
313
+
314
+ <ul>
315
+ <li>The constructor for QgsAttributeDialog has changed</li>
316
+ <li>dialog() was removed - just use the object directly.</li>
317
+ <li>setIsAddDialog() was removed. Use setMode() instead.</li>
318
+ </ul>
319
+
320
+ \subsection qgis_api_break_3_0_QgsAttributeForm QgsAttributeForm
321
+
322
+ <ul>
323
+ <li>setIsAddDialog() was removed. Use setMode() instead.</li>
324
+ <li>accept() was removed. Use save() instead.</li>
325
+ <li>reject() was removed. Use resetValues() instead.</li>
326
+ </ul>
327
+
309
328
\subsection qgis_api_break_3_0_QgsAuthConfigUriEdit QgsAuthConfigUriEdit
310
329
311
330
<ul>
@@ -318,6 +337,11 @@ and setSortKeyAttributeName() instead.</li>
318
337
<li>GenericDataSourceURI has been renamed to GenericDataSourceUri</li>
319
338
</ul>
320
339
340
+ \subsection qgis_api_break_3_0_QgsQgsCachedFeatureIterator QgsCachedFeatureIterator
341
+ <ul>
342
+ <li>The constructor for QgsCachedFeatureIterator has changed.</li>
343
+ </ul>
344
+
321
345
\subsection qgis_api_break_3_0_QgsCategorizedSymbolRendererWidget QgsCategorizedSymbolRendererWidget
322
346
<ul>
323
347
<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().<
337
361
<li>Some internal methods which were previously public or protected were made private.</li>
338
362
</ul>
339
363
364
+ \subsection qgis_api_break_3_0_QgsColorRampShader QgsColorRampShader
365
+
366
+ <ul>
367
+ <li>maximumColorCacheSize() and setMaximumColorCacheSize() were no longer used and are removed.</li>
368
+ </ul>
369
+
340
370
\subsection qgis_api_break_3_0_QgsComposerArrow QgsComposerArrow
341
371
342
372
<ul>
@@ -547,6 +577,10 @@ and the new ramp can be retrieved after executing the dialog by calling ramp().<
547
577
<ul>
548
578
<li>expressionParams(), setExpressionParams() and insertExpressionParam() have been removed.
549
579
QgsExpressionContext variables should be used in their place.</li>
580
+ <li>prepareExpression( QgsVectorLayer* layer ) and prepareExpression( const QgsFields &fields )
581
+ were removed. Use QgsExpressionContext variant instead.</li>
582
+ <li>referencedColumns( QgsVectorLayer* layer ) and referencedColumns( const QgsFields& fields )
583
+ were removed. Use QgsExpressionContext variant instead.</li>
550
584
</ul>
551
585
552
586
\subsection qgis_api_break_3_0_QgsDataDefinedButton QgsDataDefinedButton
@@ -597,6 +631,12 @@ Use renderDiagram( const QgsFeature& feature, QgsRenderContext& c, const QgsDiag
597
631
Use diagramSize( const QgsFeature& feature, const QgsRenderContext& c, const QgsDiagramSettings& s, const QgsDiagramInterpolationSettings& is ) instead.
598
632
</ul>
599
633
634
+ \subsection qgis_api_break_3_0_QgsDiagramRenderer QgsDiagramRenderer
635
+
636
+ <ul>
637
+ <li>xform, fields were no longer required and are removed.</li>
638
+ </ul>
639
+
600
640
\subsection qgis_api_break_3_0_QgsDiagramLayerSettings QgsDiagramLayerSettings
601
641
602
642
<ul>
@@ -607,6 +647,33 @@ place of a null pointer.</li>
607
647
<li>The ct member has been removed. Use coordinateTransform() and setCoordinateTransform() instead.
608
648
</ul>
609
649
650
+ \subsection qgis_api_break_3_0_QgsDiagramSettings QgsDiagramSettings
651
+
652
+ <ul>
653
+ <li>The SizeType enum was removed. Use QgsUnitTypes.RenderUnit instead.</li>
654
+ </ul>
655
+
656
+ \subsection qgis_api_break_3_0_QgsDistanceArea QgsDistanceArea
657
+
658
+ <ul>
659
+ <li>sourceCrs() now returns a QgsCoordinateReferenceSystem instead of the crs ID.</li>
660
+ <li>measure() has been removed. Use measureArea() or measureLength() instead.</li>
661
+ <li>textUnit() was removed. Use formatDistance() or formatArea() instead.</li>
662
+ <li>convertMeasurement was removed. Use QgsUnitTypes for conversion instead.</li>
663
+ </ul>
664
+
665
+ \subsection qgis_api_break_3_0_QgsDxfExport QgsDxfExport
666
+
667
+ <ul>
668
+ <li>The writeGroup() method taking a QgsPoint argument was removed. Use the version which takes a QgsPointV2 instead.</li>
669
+ <li>The writePolyline() method taking a QgsPolyline argument was removed. Use the alternative version instead.</li>
670
+ <li>The writePolygon() method taking a QgsPolygon argument was removed. Use the version which takes a QgsRingSequence instead.</li>
671
+ <li>writeSolid() was removed. Use writePolygon() instead.</li>
672
+ <li>The signature for writeLine() has changed.</li>
673
+ <li>writePoint(), writeFilledCircle(), writeCircle(), writeText() and writeMText() now take QgsPointV2 arguments</li>
674
+
675
+ </ul>
676
+
610
677
\subsection qgis_api_break_3_0_QgsEditFormConfig QgsEditFormConfig
611
678
612
679
<ul>
@@ -772,6 +839,10 @@ plugins calling this method will need to be updated.</li>
772
839
773
840
<ul>
774
841
<li>init(QgsMapRenderer*) has been removed. Use init(const QgsMapSettings&) instead.</li>
842
+ <li>&layer() was removed. use QgsPalLayerSettings::fromLayer() instead.</li>
843
+ <li>addDiagramLayer() was removed. Use prepareDiagramLayer() instead.</li>
844
+ <li>labelsAtPosition() was removed. Use takeResults() and methods of QgsLabelingResults instead.</li>
845
+ <li>labelsWithinRect() was removed. Use takeResults() and methods of QgsLabelingResults.</li>
775
846
</ul>
776
847
777
848
\subsection qgis_api_break_3_0_QgsLayerTreeGroup QgsLayerTreeGroup
@@ -780,6 +851,20 @@ plugins calling this method will need to be updated.</li>
780
851
<li>readChildrenFromXML() has been renamed to readChildrenFromXml()</li>
781
852
</ul>
782
853
854
+ \subsection qgis_api_break_3_0_QgsLayerTreeMode QgsLayerTreeModel
855
+
856
+ <ul>
857
+ <li>The ShowSymbology flag was removed. Use ShowLegend instead.</li>
858
+ <li>The AllowSymbologyChangeState flag was removed. Use AllowLegendChangeState instead.</li>
859
+ <li>legendFilterByMap() was renamed to legendFilterMapSettings()</li>
860
+ <li>isIndexSymbologyNode() was removed. Use index2legendNode() instead.</li>
861
+ <li>layerNodeForSymbologyNode() was removed. Use index2legendNode()->parent() instead.</li>
862
+ <li>refreshLayerSymbology() was removed. Use refreshLayerLegend() instead.</li>
863
+ <li>setAutoCollapseSymbologyNodes() was removed. Use setAutoCollapseLegendNodes() instead.</li>
864
+ <li>autoCollapseSymbologyNodes() was removed. Use autoCollapseLegendNodes() instead.</li>
865
+ </ul>
866
+
867
+
783
868
\subsection qgis_api_break_3_0_QgsLayerTreeNode QgsLayerTreeNode
784
869
785
870
<ul>
@@ -812,6 +897,12 @@ and the new ramp can be retrieved after executing the dialog by calling ramp().<
812
897
<li>setProgress() signal has been removed. It was not emitted since 2.0.</li>
813
898
</ul>
814
899
900
+ \subsection qgis_api_break_3_0_QgsMapCanvasItem QgsMapCanvasItem
901
+
902
+ <ul>
903
+ <li>setPanningOffset() was removed.</li>
904
+ </ul>
905
+
815
906
\subsection qgis_api_break_3_0_QgsMapLayer QgsMapLayer
816
907
817
908
<ul>
@@ -836,6 +927,12 @@ screenUpdateRequested() were removed. These members have had no effect for a num
836
927
<li>writeLayerXML() was renamed to writeLayerXml()</li>
837
928
</ul>
838
929
930
+ \subsection qgis_api_break_3_0_QgsMapLayerRegistry QgsMapLayerRegistry
931
+
932
+ <ul>
933
+ <li>clearAllLayerCaches() was removed. This method has had no effect since QGIS 2.4</li>
934
+ </ul>
935
+
839
936
\subsection qgis_api_break_3_0_QgsMapOverviewCanvas QgsMapOverviewCanvas
840
937
841
938
<ul>
@@ -860,6 +957,27 @@ be used instead of a null pointer if no transformation is required.</li>
860
957
<li>drawOldLabeling(), drawNewLabeling() were removed. The method drawLabeling() should be used instead.</li>
861
958
</ul>
862
959
960
+ \subsection qgis_api_break_3_0_QgsMapTool QgsMapTool
961
+
962
+ <ul>
963
+ <li>renderComplete() was removed. Map tools must not directly depend on rendering progress.</li>
964
+ <li>isTransient() and isEditTool() were removed. Use flags() instead.</li>
965
+ </ul>
966
+
967
+ \subsection qgis_api_break_3_0_QgsMapToolCapture QgsMapToolCapture
968
+
969
+ <ul>
970
+ <li>The nextPoint() method taking a QgsPoint was removed. Use the version taking a QgsPointV2 instead.</li>
971
+ </ul>
972
+
973
+ \subsection qgis_api_break_3_0_QgsMapToPixel QgsMapToPixel
974
+
975
+ <ul>
976
+ <li>The constructor now uses the map center x and y, and requires both height and width in pixels and a rotation value</li>
977
+ <li>setYMaximum(), setYMinimum(), setXMinimum() were removed. Use setParameters() instead</li>
978
+
979
+ </ul>
980
+
863
981
\subsection qgis_api_break_3_0_QgsMapToPixelGeometrySimplifier QgsMapToPixelGeometrySimplifier
864
982
865
983
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>
889
1007
<li>Constructor taking QgsLayerItem argument has been removed. Use QgsDataItem::mimeUri() instead.</li>
890
1008
</ul>
891
1009
1010
+ \subsection qgis_api_break_3_0_QgsNetworkAccessManager QgsNetworkAccessManager
1011
+
1012
+ <ul>
1013
+ <li>sendGet() was removed. Use get() directly.</li>
1014
+ <li>deleteReply() was removed. Use abort() and deleteLayer() on the reply directly.</li>
1015
+ <li>requestSent signal was removed. This is no longer emitted.</li>
1016
+ </ul>
1017
+
892
1018
\subsection qgis_api_break_3_0_QgsOSMElement QgsOSMElement
893
1019
894
1020
<ul>
895
1021
<li>elemID() has been renamed to elemId()</li>
896
1022
</ul>
897
1023
1024
+ \subsection qgis_api_break_3_0_QgsOwsConnection QgsOwsConnection
1025
+
1026
+ <ul>
1027
+ <li>connectionInfo() was removed.</li>
1028
+ </ul>
1029
+
898
1030
\subsection qgis_api_break_3_0_QgsOWSSourceSelect QgsOWSSourceSelect
899
1031
900
1032
<ul>
@@ -925,6 +1057,12 @@ and for forcing certain items to always sort on top.</li>
925
1057
<ul>
926
1058
<li>init(QgsMapRenderer*) has been removed. Use init(const QgsMapSettings&) instead.</li>
927
1059
<li>prepareGeometry and geometryRequiresPreparation now take geometry references, not pointers.</li>
1060
+ <li>layer() was removed. If direct access to QgsPalLayerSettings is necessary, use QgsPalLayerSettings::fromLayer()</li>
1061
+ <li>candidates() was removed.</li>
1062
+ <li>addDiagramLayer() was removed. Use prepareDiagramLayer() instead.</li>
1063
+ <li>labelsAtPosition() was removed. Use takeResults() and methods of QgsLabelingResults instead.</li>
1064
+ <li>labelsWithinRect() was removed. Use takeResults() and methods of QgsLabelingResults instead.</li>
1065
+ <li>isStoredWithProject() and setStoredWithProject() had no effect and were removed.</li>
928
1066
</ul>
929
1067
930
1068
\subsection qgis_api_break_3_0_QgsPalLayerSettings QgsPalLayerSettings
@@ -956,6 +1094,9 @@ plugins calling this method will need to be updated.</li>
956
1094
957
1095
<ul>
958
1096
<li>visibilityPresetCollection() has been renamed to mapThemeCollection()</li>
1097
+ <li>title( const QString & title ) was removed. Use setTitle() instead.</li>
1098
+ <li>dirty( bool b ) was removed. Use setDirty() instead.</li>
1099
+ <li>clearProperties() was removed. Use clear() instead.</li>
959
1100
</ul>
960
1101
961
1102
\subsection qgis_api_break_3_0_QgsRasterCalcNode QgsRasterCalcNode
@@ -982,6 +1123,14 @@ plugins calling this method will need to be updated.</li>
982
1123
<li>block() has new "feedback" argument.</li>
983
1124
</ul>
984
1125
1126
+ \subsection qgis_api_break_3_0_QgsRasterLayer QgsRasterLayer
1127
+
1128
+ <ul>
1129
+ <li>setDrawingStyle() was removed. Use setRendererForDrawingStyle() or setRenderer() instead.</li>
1130
+ <li>previewAsPixmap() was removed. Use previewAsImage() instead.</li>
1131
+ <li>updateProgress() had no effect and was removed.</li>
1132
+ </ul>
1133
+
985
1134
\subsection qgis_api_break_3_0_QgsRasterProjector QgsRasterProjector
986
1135
987
1136
<ul>
@@ -1061,6 +1210,14 @@ be returned instead of a null pointer if no transformation is required.</li>
1061
1210
1062
1211
<ul>
1063
1212
<li>Constructor variant with QgsMapRenderer has been removed. Use the variant with QgsMapSettings.</li>
1213
+ <li>Signature for snapPoint() has changed.</li>
1214
+ </ul>
1215
+
1216
+ \subsection qgis_api_break_3_0_QgsSublayersDialog QgsSublayersDialog
1217
+
1218
+ <ul>
1219
+ <li>populateLayerTable() now takes a list of QgsSublayersDialog.LayerDefinition values</li>
1220
+ <li>selectionNames() and selectionIndexes() were removed. Use selection().</li>
1064
1221
</ul>
1065
1222
1066
1223
\subsection qgis_api_break_3_0_QgsSvgCache QgsSvgCache
@@ -1127,6 +1284,7 @@ than an integer value</li>
1127
1284
1128
1285
<ul>
1129
1286
<li>vertexSearchRadius(), defaultTolerance(), toleranceInMapUnits() do not have variant with QgsMapRenderer anymore. Use the variants with QgsMapSettings.</li>
1287
+ <li>The MapUnits UnitType was removed. Use LayerUnits or ProjectUnits instead.</li>
1130
1288
</ul>
1131
1289
1132
1290
\subsection qgis_api_break_3_0_QgsTreeWidgetItem QgsTreeWidgetItem
@@ -1153,6 +1311,12 @@ Radians (to AngleRadians), Gon (to AngleGon), MinutesOfArc (to AngleMinutesOfArc
1153
1311
SecondsOfArc (to AngleSecondsOfArc), Turn (to AngleTurn) and UnknownAngleUnit to AngleUnknownUnit</li>
1154
1312
</ul>
1155
1313
1314
+ \subsection qgis_api_break_3_0_QgsVector QgsVector
1315
+
1316
+ <ul>
1317
+ <li>normal() was removed. Use normalized() instead.</li>
1318
+ </ul>
1319
+
1156
1320
\subsection qgis_api_break_3_0_QgsVectorDataProvider QgsVectorDataProvider
1157
1321
1158
1322
<ul>
0 commit comments