QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
38 mainLayout->addWidget( mItemPropertiesWidget );
46 mPolygonStyleButton->registerExpressionContextGenerator( mPolygon );
49 setGuiElementValues();
51 mPolygonStyleButton->registerExpressionContextGenerator( mPolygon );
53 if ( mPolygon->layout() )
61 if ( mItemPropertiesWidget )
75 mPolygon = qobject_cast< QgsLayoutItemPolygon * >( item );
76 mItemPropertiesWidget->
setItem( mPolygon );
81 mPolygonStyleButton->registerExpressionContextGenerator( mPolygon );
83 setGuiElementValues();
88 void QgsLayoutPolygonWidget::setGuiElementValues()
95 whileBlocking( mPolygonStyleButton )->setSymbol( mPolygon->symbol()->clone() );
98 void QgsLayoutPolygonWidget::symbolChanged()
104 mPolygon->setSymbol( mPolygonStyleButton->clonedSymbol<
QgsFillSymbol>() );
105 mPolygon->layout()->undoStack()->endCommand();
@ LayoutPolygon
Polygon shape item.
@ UndoShapeStyle
Shape symbol style.
void changed()
Emitted when the object's properties change.
int type() const override
Returns a unique graphics item type identifier.
QgsSignalBlocker< Object > whileBlocking(Object *object)
Temporarily blocks signals from a QObject while calling a single method from the object.
Base class for graphical items within a QgsLayout.
A fill symbol type, for rendering Polygon and MultiPolygon geometries.
Layout item for node based polygon shapes.
Interface for master layout type objects, such as print layouts and reports.
void layerChanged(QgsVectorLayer *layer)
Emitted when the context's layer is changed.