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();