mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Working label updates on atlas feature change
This commit is contained in:
parent
5d1d25b36b
commit
b602b3d58e
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user