Skip to content

Commit

Permalink
Restore shape atlas handling
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 5, 2018
1 parent e72e20b commit a5ab4e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
8 changes: 5 additions & 3 deletions src/app/layout/qgslayoutshapewidget.cpp
Expand Up @@ -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 )
Expand Down
9 changes: 0 additions & 9 deletions src/core/layout/qgslayoutitemshape.cpp
Expand Up @@ -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
Expand Down

0 comments on commit a5ab4e1

Please sign in to comment.