24 connect( mSpinZIndex, qOverload<int>( &QSpinBox::valueChanged ),
this, [ = ]
26 if ( !mBlockChangedSignal )
29 mSpinZIndex->setClearValue( 0 );
31 connect( mReferenceScaleGroup, &QGroupBox::toggled,
this, [ = ]
33 if ( !mBlockChangedSignal )
38 if ( !mBlockChangedSignal )
45 mSpinZIndex->setValue( item->
zIndex() );
62 mReferenceScaleWidget->setShowCurrentScaleButton(
true );
Abstract base class for annotation items which are drawn with QgsAnnotationLayers.
void setUseSymbologyReferenceScale(bool enabled)
Sets whether the annotation item uses a symbology reference scale.
void setZIndex(int index)
Sets the item's z index, which controls the order in which annotation items are rendered in the layer...
bool useSymbologyReferenceScale() const
Returns true if the annotation item uses a symbology reference scale.
void setSymbologyReferenceScale(double scale)
Sets the annotation's symbology reference scale.
int zIndex() const
Returns the item's z index, which controls the order in which annotation items are rendered in the la...
double symbologyReferenceScale() const
Returns the annotation's symbology reference scale.
Contains settings which reflect the context in which a symbol (or renderer) widget is shown,...
void setMapCanvas(QgsMapCanvas *canvas)
Sets the map canvas associated with the widget.
QgsMapCanvas * mapCanvas() const
Returns the map canvas associated with the widget.