Skip to content
Permalink
Browse files

Working label updates on atlas feature change

  • Loading branch information
nyalldawson committed Dec 20, 2017
1 parent 5d1d25b commit b602b3d58ecc0f17d7433ee541cd73e94b442ed8
@@ -1943,6 +1943,7 @@ void QgsLayoutDesignerDialog::atlasPreviewTriggered( bool checked )
else
{
QgisApp::instance()->mapCanvas()->stopRendering();
atlas->first();
#if 0 //TODO
emit atlasPreviewFeatureChanged();
#endif
@@ -2220,6 +2221,7 @@ void QgsLayoutDesignerDialog::createAtlasWidget()
mStatusBar->showMessage( message );
} );
connect( atlas, &QgsLayoutAtlas::toggled, this, &QgsLayoutDesignerDialog::toggleAtlasControls );
connect( atlas, &QgsLayoutAtlas::toggled, this, &QgsLayoutDesignerDialog::refreshLayout );
connect( atlas, &QgsLayoutAtlas::numberFeaturesChanged, this, &QgsLayoutDesignerDialog::updateAtlasPageComboBox );
connect( atlas, &QgsLayoutAtlas::featureChanged, this, &QgsLayoutDesignerDialog::atlasFeatureChanged );
toggleAtlasControls( atlas->enabled() && atlas->coverageLayer() );
@@ -492,6 +492,7 @@ void QgsLayoutItemLabel::setFrameStrokeWidth( const QgsLayoutMeasurement &stroke

void QgsLayoutItemLabel::refresh()
{
QgsLayoutItem::refresh();
contentChanged();
}

@@ -18,6 +18,7 @@
#include <QPainter>

#include "qgslayout.h"
#include "qgslayoutcontext.h"
#include "qgslayoutobject.h"


@@ -92,6 +93,7 @@ QgsLayoutObject::QgsLayoutObject( QgsLayout *layout )
if ( mLayout )
{
connect( mLayout, &QgsLayout::refreshed, this, &QgsLayoutObject::refresh );
connect( &mLayout->context(), &QgsLayoutContext::changed, this, &QgsLayoutObject::refresh );
}
}

0 comments on commit b602b3d

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