mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Restore shape atlas handling
This commit is contained in:
parent
e72e20b8e0
commit
a5ab4e16e4
@ -60,9 +60,11 @@ QgsLayoutShapeWidget::QgsLayoutShapeWidget( QgsLayoutItemShape *shape )
|
||||
connect( mShapeStyleButton, &QgsSymbolButton::changed, this, &QgsLayoutShapeWidget::symbolChanged );
|
||||
connect( mRadiusUnitsComboBox, &QgsLayoutUnitsComboBox::changed, this, &QgsLayoutShapeWidget::radiusUnitsChanged );
|
||||
|
||||
#if 0 //TODO
|
||||
mShapeStyleButton->setLayer( atlasCoverageLayer() );
|
||||
#endif
|
||||
mShapeStyleButton->setLayer( coverageLayer() );
|
||||
if ( mShape->layout() )
|
||||
{
|
||||
connect( &mShape->layout()->context(), &QgsLayoutContext::layerChanged, mShapeStyleButton, &QgsSymbolButton::setLayer );
|
||||
}
|
||||
}
|
||||
|
||||
bool QgsLayoutShapeWidget::setNewItem( QgsLayoutItem *item )
|
||||
|
@ -43,15 +43,6 @@ QgsLayoutItemShape::QgsLayoutItemShape( QgsLayout *layout )
|
||||
updateBoundingRect();
|
||||
update();
|
||||
} );
|
||||
|
||||
#if 0 //TODO
|
||||
if ( mComposition )
|
||||
{
|
||||
//connect to atlas feature changes
|
||||
//to update symbol style (in case of data-defined symbology)
|
||||
connect( &mComposition->atlasComposition(), &QgsAtlasComposition::featureChanged, this, &QgsComposerItem::repaint );
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
int QgsLayoutItemShape::type() const
|
||||
|
Loading…
x
Reference in New Issue
Block a user