Skip to content

Commit fd0c5ef

Browse files
committedSep 29, 2016
Refactor symbol/renderer widgets to use QgsSymbolWidgetContext
instead of individually setting map canvas, expression context, etc Will make it more easy in future to add additional parameters to the widget context
1 parent fbdc93f commit fd0c5ef

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+643
-613
lines changed
 

‎doc/api_break.dox

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,12 @@ plugins calling this method will need to be updated.</li>
850850
<li>labelsWithinRect() was removed. Use takeResults() and methods of QgsLabelingResults.</li>
851851
</ul>
852852

853+
\subsection qgis_api_break_3_0_QgsLayerPropertiesWidget QgsLayerPropertiesWidget
854+
855+
<ul>
856+
<li>expressionContext(), setExpressionContext(), setMapCanvas() and mapCanvas() have been removed in favor of setContext()/context()</li>
857+
</ul>
858+
853859
\subsection qgis_api_break_3_0_QgsLayerTreeGroup QgsLayerTreeGroup
854860

855861
<ul>
@@ -1176,6 +1182,20 @@ be returned instead of a null pointer if no transformation is required.</li>
11761182
<li>setCoordinateTransform() now takes a QgsCoordinateTransform reference, not a pointer. An invalid QgsCoordinateTransform should be used instead of a null pointer if no transformation is required.</li>
11771183
</ul>
11781184

1185+
\subsection qgis_api_break_3_0_QgsRendererWidget QgsRendererWidget
1186+
1187+
<ul>
1188+
<li>expressionContext(), setExpressionContext(), setMapCanvas() and mapCanvas() have been removed in favor of setContext()/context()</li>
1189+
</ul>
1190+
1191+
\subsection qgis_api_break_3_0_QgsRendererRulePropsWidget QgsRendererRulePropsWidget
1192+
1193+
<ul>
1194+
<li>expressionContext(), setExpressionContext(), setMapCanvas() and mapCanvas() have been removed in favor of setContext()/context()</li>
1195+
</ul>
1196+
1197+
1198+
11791199
\subsection qgis_api_break_3_0_QgsRubberBand QgsRubberBand
11801200

11811201
<ul>
@@ -1263,6 +1283,13 @@ the variant which takes QgsSymbolRenderContext instead.</li>
12631283
<li>expression() was removed. Use getDataDefinedProperty or evaluateDataDefinedProperty instead.</li>
12641284
</ul>
12651285

1286+
\subsection qgis_api_break_3_0_QgsSymbolLayerWidget QgsSymbolLayerWidget
1287+
1288+
<ul>
1289+
<li>expressionContext(), setExpressionContext(), setMapCanvas() and mapCanvas() have been removed in favor of setContext()/context()</li>
1290+
</ul>
1291+
1292+
12661293
\subsection qgis_api_break_3_0_QgsSymbolRenderContext QgsSymbolRenderContext (renamed from QgsSymbolV2RenderContext)
12671294

12681295
<ul>
@@ -1291,6 +1318,20 @@ than an integer value</li>
12911318
<li>saveSymbol() was removed.</li>
12921319
</ul>
12931320

1321+
\subsection qgis_api_break_3_0_QgsSymbolSelectorDialog QgsSymbolSelectorDialog
1322+
1323+
<ul>
1324+
<li>expressionContext(), setExpressionContext(), setMapCanvas() and mapCanvas() have been removed in favor of setContext()/context()</li>
1325+
</ul>
1326+
1327+
\subsection qgis_api_break_3_0_QgsSymbolsListWidget QgsSymbolsListWidget
1328+
1329+
<ul>
1330+
<li>expressionContext(), setExpressionContext(), setMapCanvas() and mapCanvas() have been removed in favor of setContext()/context()</li>
1331+
</ul>
1332+
1333+
1334+
12941335
\subsection qgis_api_break_3_0_QgsTolerance QgsTolerance
12951336

12961337
<ul>

‎python/gui/gui.sip

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@
249249
%Include symbology-ng/qgssymbollevelsdialog.sip
250250
%Include symbology-ng/qgssymbolslistwidget.sip
251251
%Include symbology-ng/qgssymbolselectordialog.sip
252+
%Include symbology-ng/qgssymbolwidgetcontext.sip
252253
%Include symbology-ng/qgsvectorfieldsymbollayerwidget.sip
253254

254255
%Include effects/qgseffectdrawmodecombobox.sip

0 commit comments

Comments
 (0)
Please sign in to comment.