Skip to content

Commit 563ab03

Browse files
suricactusnyalldawson
authored andcommittedMay 26, 2020
Fix: make "Part" struct dependent definitions private
1 parent 899d3fe commit 563ab03

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed
 

‎python/core/auto_generated/symbology/qgsfillsymbollayer.sip.in

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2239,13 +2239,6 @@ Sets whether point markers should be ``clipped`` to the current part boundary on
22392239

22402240

22412241
protected:
2242-
struct Part
2243-
{
2244-
QPolygonF exterior;
2245-
QList<QPolygonF> rings;
2246-
};
2247-
2248-
void render( QgsRenderContext &context, const QVector<Part> &parts, const QgsFeature &feature, bool selected );
22492242

22502243

22512244

‎src/core/symbology/qgsfillsymbollayer.h

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2016,21 +2016,13 @@ class CORE_EXPORT QgsCentroidFillSymbolLayer : public QgsFillSymbolLayer
20162016
void stopFeatureRender( const QgsFeature &feature, QgsRenderContext &context ) override;
20172017

20182018
protected:
2019-
struct Part
2020-
{
2021-
QPolygonF exterior;
2022-
QList<QPolygonF> rings;
2023-
};
2024-
2025-
void render( QgsRenderContext &context, const QVector<Part> &parts, const QgsFeature &feature, bool selected );
20262019

20272020
std::unique_ptr< QgsMarkerSymbol > mMarker;
20282021
bool mPointOnSurface = false;
20292022
bool mPointOnAllParts = true;
20302023
bool mClipPoints = false;
20312024
bool mClipOnCurrentPartOnly = false;
20322025

2033-
QVector<Part> mCurrentParts;
20342026
bool mRenderingFeature = false;
20352027

20362028
QgsFeatureId mCurrentFeatureId = -1;
@@ -2040,7 +2032,14 @@ class CORE_EXPORT QgsCentroidFillSymbolLayer : public QgsFillSymbolLayer
20402032
#ifdef SIP_RUN
20412033
QgsCentroidFillSymbolLayer( const QgsCentroidFillSymbolLayer &other );
20422034
#endif
2035+
struct Part
2036+
{
2037+
QPolygonF exterior;
2038+
QList<QPolygonF> rings;
2039+
};
20432040

2041+
void render( QgsRenderContext &context, const QVector<Part> &parts, const QgsFeature &feature, bool selected );
2042+
QVector<Part> mCurrentParts;
20442043
};
20452044

20462045
#endif

0 commit comments

Comments
 (0)