Restore shape atlas handling

This commit is contained in:
Nyall Dawson 2017-12-20 18:43:50 +10:00
parent e72e20b8e0
commit a5ab4e16e4
2 changed files with 5 additions and 12 deletions

View File

@ -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 )

View File

@ -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