22 : mSymbol( symbol ? symbol->clone() : nullptr )
25 , mCheckable( checkable )
26 , mOriginalSymbolPointer( symbol )
27 , mScaleMinDenom( scaleMinDenom )
28 , mScaleMaxDenom( scaleMaxDenom )
30 , mParentKey( parentRuleKey )
42 delete mDataDefinedSizeLegendSettings;
51 mSymbol = other.mSymbol ? other.mSymbol->
clone() :
nullptr;
52 mLabel = other.mLabel;
54 mCheckable = other.mCheckable;
55 delete mDataDefinedSizeLegendSettings;
56 mDataDefinedSizeLegendSettings = other.mDataDefinedSizeLegendSettings ?
new QgsDataDefinedSizeLegend( *other.mDataDefinedSizeLegendSettings ) :
nullptr;
57 mOriginalSymbolPointer = other.mOriginalSymbolPointer;
58 mScaleMinDenom = other.mScaleMinDenom;
59 mScaleMaxDenom = other.mScaleMaxDenom;
60 mLevel = other.mLevel;
61 mParentKey = other.mParentKey;
70 if ( mScaleMinDenom <= 0 && mScaleMaxDenom <= 0 )
72 if ( mScaleMinDenom > 0 && mScaleMinDenom > scale )
74 if ( mScaleMaxDenom > 0 && mScaleMaxDenom < scale )
82 mSymbol = s ? s->
clone() :
nullptr;
83 mOriginalSymbolPointer = s;
88 delete mDataDefinedSizeLegendSettings;
89 mDataDefinedSizeLegendSettings = settings;
94 return mDataDefinedSizeLegendSettings;