Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Restore shape atlas handling
- Loading branch information
|
@@ -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 |
|
|