37 mainLayout->addWidget( mItemPropertiesWidget );
45 mPolygonStyleButton->registerExpressionContextGenerator( mPolygon );
48 setGuiElementValues();
50 mPolygonStyleButton->registerExpressionContextGenerator( mPolygon );
52 if ( mPolygon->layout() )
60 if ( mItemPropertiesWidget )
74 mPolygon = qobject_cast< QgsLayoutItemPolygon * >( item );
75 mItemPropertiesWidget->
setItem( mPolygon );
80 mPolygonStyleButton->registerExpressionContextGenerator( mPolygon );
82 setGuiElementValues();
87void QgsLayoutPolygonWidget::setGuiElementValues()
94 whileBlocking( mPolygonStyleButton )->setSymbol( mPolygon->symbol()->clone() );
97void QgsLayoutPolygonWidget::symbolChanged()
103 mPolygon->setSymbol( mPolygonStyleButton->clonedSymbol<
QgsFillSymbol>() );
104 mPolygon->layout()->undoStack()->endCommand();
A fill symbol type, for rendering Polygon and MultiPolygon geometries.
Layout item for node based polygon shapes.
@ LayoutPolygon
Polygon shape item.
Base class for graphical items within a QgsLayout.
@ UndoShapeStyle
Shape symbol style.
int type() const override
Returns a unique graphics item type identifier.
void changed()
Emitted when the object's properties change.
void layerChanged(QgsVectorLayer *layer)
Emitted when the context's layer is changed.
Interface for master layout type objects, such as print layouts and reports.
QgsSignalBlocker< Object > whileBlocking(Object *object)
Temporarily blocks signals from a QObject while calling a single method from the object.