Skip to content
Permalink
Browse files

Restore some more atlas handling

  • Loading branch information
nyalldawson committed Dec 20, 2017
1 parent a5ab4e1 commit 6506bcda20d4ca5af539d8a8c55db89bc157d141
@@ -76,6 +76,13 @@ QgsLayoutPagePropertiesWidget::QgsLayoutPagePropertiesWidget( QWidget *parent, Q

mExcludePageDDBtn->registerEnabledWidget( mExcludePageCheckBox, false );

mSymbolButton->registerExpressionContextGenerator( mPage );
mSymbolButton->setLayer( coverageLayer() );
if ( mPage->layout() )
{
connect( &mPage->layout()->context(), &QgsLayoutContext::layerChanged, mSymbolButton, &QgsSymbolButton::setLayer );
}

showCurrentPageSize();
}

@@ -46,9 +46,13 @@ QgsLayoutPolygonWidget::QgsLayoutPolygonWidget( QgsLayoutItemPolygon *polygon )
}

setGuiElementValues();
#if 0 //TODO
mShapeStyleButton->setLayer( atlasCoverageLayer() );
#endif

mPolygonStyleButton->registerExpressionContextGenerator( mPolygon );
mPolygonStyleButton->setLayer( coverageLayer() );
if ( mPolygon->layout() )
{
connect( &mPolygon->layout()->context(), &QgsLayoutContext::layerChanged, mPolygonStyleButton, &QgsSymbolButton::setLayer );
}
}

bool QgsLayoutPolygonWidget::setNewItem( QgsLayoutItem *item )
@@ -88,9 +88,12 @@ QgsLayoutPolylineWidget::QgsLayoutPolylineWidget( QgsLayoutItemPolyline *polylin
}
setGuiElementValues();

#if 0 //TODO
mShapeStyleButton->setLayer( atlasCoverageLayer() );
#endif
mLineStyleButton->registerExpressionContextGenerator( mPolyline );
mLineStyleButton->setLayer( coverageLayer() );
if ( mPolyline->layout() )
{
connect( &mPolyline->layout()->context(), &QgsLayoutContext::layerChanged, mLineStyleButton, &QgsSymbolButton::setLayer );
}
}

bool QgsLayoutPolylineWidget::setNewItem( QgsLayoutItem *item )

0 comments on commit 6506bcd

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