Skip to content
Permalink
Browse files

Restore shape atlas handling

  • Loading branch information
nyalldawson committed Dec 20, 2017
1 parent e72e20b commit a5ab4e16e4d436b43b3edb30da69c8f9e16ba638
Showing with 5 additions and 12 deletions.
  1. +5 −3 src/app/layout/qgslayoutshapewidget.cpp
  2. +0 −9 src/core/layout/qgslayoutitemshape.cpp
@@ -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

0 comments on commit a5ab4e1

Please sign in to comment.
You can’t perform that action at this time.