@@ -181,6 +181,11 @@ This page tries to maintain a list with incompatible changes that happened in pr
181
181
<li>QgsColorbutton was removed. QgsColorButtonV2 has now been renamed to QgsColorButton. Hence, QgsColorButtonV2 does not exist anymore.</li>
182
182
<li>QgsColorDialog was removed, and QgsColorDialogV2 was renamed to QgsColorDialog. Hence, QgsColorButtonV2 does not exist anymore.
183
183
All the functionality from the old QgsColorDialog has been moved to the new class.</li>
184
+ <li>QgsComposerAttributeTable and associated classes (eg QgsComposerAttributeTableCompare,
185
+ QgsComposerAttributeTableColumnModel, QgsComposerTableSortColumnsProxyModel) were removed.
186
+ Use QgsComposerAttributeTableV2 instead.</li>
187
+ <li>QgsComposerTable was removed. Use QgsComposerAttributeTableV2 instead.</li>
188
+ <li>ComposerTextTable was removed. Use ComposerTextTableV2 instead.</li>
184
189
<li>QgsCRSCache was removed. QgsCoordinateReferenceSystem now internally uses a cache for CRS creation,
185
190
so there is no longer a need for the separate cache class. Code which previously called QgsCRSCache::updateCRSCache()
186
191
should now call QgsCoordinateReferenceSystem::invalidateCache() and QgsCoordinateTransformCache::instance()->invalidateCrs( authid ).</li>
@@ -290,6 +295,15 @@ variant instead.</li>
290
295
291
296
<ul>
292
297
<li>readXMLMapSettings() has been renamed to readXmlMapSettings()</li>
298
+ <li>composerMap() and setComposerMap() were removed. Use QgsComposerMap::atlasDriven() and setAtlasDriven()
299
+ instead</li>
300
+ <li>fixedScale() and setFixedScale() were removed. Use QgsComposerMap::atlasScalingMode() and setAtlasScalingMode()
301
+ instead</li>
302
+ <li>margin() and setMargin() were removed. Use QgsComposerMap::atlasMargin() and setAtlasMargin()
303
+ instead</li>
304
+ <li>setSortKeyAttributeIndex() and sortKeyAttributeIndex() were removed. Use sortKeyAttributeName()
305
+ and setSortKeyAttributeName() instead.</li>
306
+ <li>currentFeature() was removed. Use feature() instead.</li>
293
307
</ul>
294
308
295
309
\subsection qgis_api_break_3_0_QgsAuthConfigUriEdit QgsAuthConfigUriEdit
@@ -323,13 +337,44 @@ and the new ramp can be retrieved after executing the dialog by calling ramp().<
323
337
<li>Some internal methods which were previously public or protected were made private.</li>
324
338
</ul>
325
339
340
+ \subsection qgis_api_break_3_0_QgsComposerArrow QgsComposerArrow
341
+
342
+ <ul>
343
+ <li>setOutlineWidth(), outlineWidth(), arrowColor() and setArrowColor() were removed.
344
+ Use setArrowHeadOutlineWidth(), arrowHeadOutlineWidth(), arrowHeadOutlineColor(),
345
+ setArrowHeadOutlineColor(), arrowHeadFillColor(), setArrowHeadFillColor(),
346
+ setLineSymbol() or lineSymbol() instead.</li>
347
+ </ul>
348
+
349
+ \subsection qgis_api_break_3_0_QgsComposerAttributeTableV2 QgsComposerAttributeTableV2
350
+
351
+ <ul>
352
+ <li>setDisplayAttributes() was removed. Use setDisplayedFields() instead.</li>
353
+ </ul>
354
+
355
+ \subsection qgis_api_break_3_0_QgsComposerItem QgsComposerItem
356
+
357
+ <ul>
358
+ <li>zoomContent( int delta, double x, double y ) was removed. Use zoomContent( double, QPointF, ZoomMode )
359
+ instead.</li>
360
+ <li>drawText(), textWidthMillimeters(), fontHeightCharacterMM(), fontAscentMillimeters(),
361
+ fontDescentMillimeters(), fontHeightMillimeters(), pixelFontSize(), scaledFontPixelSize(),
362
+ drawArrowHead(), angle(), largestRotatedRectWithinBounds(), and rotate() were removed.
363
+ Use the corresponding methods in QgsComposerUtils instead.</li>
364
+ <li>rotation() and setRotation() were removed. Use itemRotation() and setItemRotation()
365
+ instead.</li>
366
+ <li>lockSymbolSize(), imageSizeConsideringRotation(), cornerPointOnRotatedAndScaledRect(),
367
+ sizeChangedByRotation() were removed. No replacement is offered for these methods.</li>
368
+ </ul>
369
+
326
370
\subsection qgis_api_break_3_0_QgsComposerLabel QgsComposerLabel
327
371
328
372
<ul>
329
373
<li>setExpressionContext() has been removed. Setup the composition using an atlas and with
330
374
expression variables in the composer label item instead.</li>
331
375
<li>setSubstitutions has been removed. Use expression context variables in the composer
332
376
label item instead.</li>
377
+ <li>margin() was removed. Use marginX() and marginY() instead.</li>
333
378
</ul>
334
379
335
380
\subsection qgis_api_break_3_0_QgsComposerLegend QgsComposerLegend
@@ -350,6 +395,34 @@ label item instead.</li>
350
395
<ul>
351
396
<li>containsWMSLayer() has been renamed to containsWmsLayer()</li>
352
397
<li>mapRenderer() has been removed. Use mapSettings() instead.</li>
398
+ <li>All grid style and format enums were moved to QgsComposerMapGrid.</li>
399
+ <li>All grid property getters and setters were moved to QgsComposerMapGrid,
400
+ and should be accessed using QgsComposerMap::grid() or QgsComposerMap::grids().</li>
401
+ <li>All overview property getters and setters were moved to QgsComposerMapOverview,
402
+ and should be accessed using QgsComposerMap::overview() or QgsComposerMap::overviews().</li>
403
+ <li>overviewExtentChanged() was moved to QgsComposerMapOverview.</li>
404
+ <li>toggleAtlasPreview(), connectMapOverviewSignals() were no longer required and are removed.</li>
405
+ <li>setRotation() and rotation() were removed. Use setMapRotation() and mapRotation()
406
+ instead.</li>
407
+ <li>atlasFixedScale() and setAtlasFixedScale() were removed. Use atlasScalingMode()
408
+ and setAtlasScalingMode() instead.</li>
409
+ </ul>
410
+
411
+ \subsection qgis_api_break_3_0_QgsComposerMapGrid QgsComposerMapGrid
412
+
413
+ <ul>
414
+ <li>The annotation position Disabled was removed. QgsComposerMapGrid::HideAll
415
+ should be used instead.</li>
416
+ </ul>
417
+
418
+ \subsection qgis_api_break_3_0_QgsComposerMultiFrame QgsComposerMultiFrame
419
+
420
+ <ul>
421
+ <li>render( QPainter* p, const QRectF& renderExtent ) was removed. Use
422
+ render( QPainter* painter, const QRectF& renderExtent, const int frameIndex )
423
+ instead.</li>
424
+ <li>render( QPainter* painter, const QRectF& renderExtent, const int frameIndex )
425
+ was made pure virtual.</li>
353
426
</ul>
354
427
355
428
\subsection qgis_api_break_3_0_QgsComposerNodesItem QgsComposerNodesItem
@@ -359,20 +432,46 @@ label item instead.</li>
359
432
<li>_writeXMLStyle() has been renamed to _writeXMLStyle()</li>
360
433
</ul>
361
434
435
+ \subsection qgis_api_break_3_0_QgsComposerPicture QgsComposerPicture
436
+
437
+ <ul>
438
+ <li>setPictureFile() and pictureFile() were removed. Use setPicturePath()
439
+ and picturePath() instead.</li>
440
+ <li>rotation() and setRotation() were removed. Use pictureRotation()
441
+ and setPictureRotation() instead.</li>
442
+ <li>usePictureExpression() and pictureExpression() were removed. Use
443
+ QgsComposerObject::dataDefinedProperty instead.</li>
444
+ <li>setUsePictureExpression() was removed. Use
445
+ QgsComposerObject::setDataDefinedProperty() instead.</li>
446
+ <li>updatePictureExpression() was removed.</li>
447
+ </ul>
448
+
362
449
\subsection qgis_api_break_3_0_QgsComposerTable QgsComposerTable
363
450
364
451
<ul>
365
452
<li>tableWriteXML() has been renamed to tableWriteXml()</li>
366
453
<li>tableReadXML() has been renamed to tableReadXml()</li>
367
454
</ul>
368
455
456
+ \subsection qgis_api_break_3_0_QgsComposerTableV2 QgsComposerTableV2
457
+
458
+ <ul>
459
+ <li>rowsVisible(), rowRange(), drawHorizontalGridLines() and
460
+ drawVerticalGridLines() were removed.</li>
461
+ </ul>
369
462
370
463
\subsection qgis_api_break_3_0_QgsComposition QgsComposition
371
464
372
465
<ul>
373
466
<li>addItemsFromXML() has been renamed to addItemsFromXml()</li>
374
467
<li>Constructor with QgsMapRenderer parameter has been removed. Use the variant with QgsMapSettings parameter.</li>
375
468
<li>mapRenderer() has been removed. Use mapSettings() instead.</li>
469
+ <li>setSnapGridTolerance(), setAlignmentSnapTolerance(), alignmentSnapTolerance() and snapGridTolerance()
470
+ were removed. Use setSnapTolerance() and snapTolerance() instead.</li>
471
+ <li>getComposerHtmlByItem() was removed. Use QgsComposerFrame::multiFrame() instead.</li>
472
+ <li>pixelFontSize(), pointFontSize(), relativeResizeRect(), relativePosition() were removed. Use the corresponding methods in QgsComposerUtils instead.</li>
473
+ <li>sortZList() was removed. Use refreshZList() instead.</li>
474
+ <li>addComposerTable(), composerTableAdded() were removed.</li>
376
475
</ul>
377
476
378
477
\subsection qgis_api_break_3_0_QgsCoordinateReferenceSystem QgsCoordinateReferenceSystem
0 commit comments