New signal preparedForRender has been added to band

This commit is contained in:
Arin Alexander 2019-02-05 01:00:32 +03:00
parent 3cfd3c968f
commit d09ae57d0f
2 changed files with 3 additions and 0 deletions

View File

@ -1053,6 +1053,8 @@ void BandDesignIntf::updateItemSize(DataSourceManager* dataManager, RenderPass p
spaceBorder += m_bottomSpace; spaceBorder += m_bottomSpace;
restoreLinks(); restoreLinks();
snapshotItemsLayout(); snapshotItemsLayout();
BandDesignIntf* patternBand = dynamic_cast<BandDesignIntf*>(patternItem());
if (patternBand) emit(patternBand->preparedForRender());
arrangeSubItems(pass, dataManager); arrangeSubItems(pass, dataManager);
if (autoHeight()){ if (autoHeight()){
if (!keepTopSpace()) { if (!keepTopSpace()) {

View File

@ -258,6 +258,7 @@ public:
void setBootomSpace(int bootomSpace); void setBootomSpace(int bootomSpace);
signals: signals:
void bandRendered(BandDesignIntf* band); void bandRendered(BandDesignIntf* band);
void preparedForRender();
void bandRegistred(); void bandRegistred();
protected: protected:
void trimToMaxHeight(int maxHeight); void trimToMaxHeight(int maxHeight);