QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
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 );
QgsMapCanvas * mapCanvas() const
Returns the map canvas associated with the widget.
bool useSymbologyReferenceScale() const
Returns true if the annotation item uses a 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.
int zIndex() const
Returns the item's z index, which controls the order in which annotation items are rendered in the la...
void setSymbologyReferenceScale(double scale)
Sets the annotation's symbology reference scale.
double symbologyReferenceScale() const
Returns the annotation's 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...
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.