mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-10-22 10:27:32 +03:00
Group bands rendering has been fixed
This commit is contained in:
@@ -643,18 +643,18 @@ void BandDesignIntf::processPopUpAction(QAction *action)
|
||||
ItemsContainerDesignInft::processPopUpAction(action);
|
||||
}
|
||||
|
||||
void BandDesignIntf::recalcItems(DataSourceManager* dataManager)
|
||||
{
|
||||
foreach(BaseDesignIntf* bi, childBaseItems()){
|
||||
ContentItemDesignIntf* ci = dynamic_cast<ContentItemDesignIntf*>(bi);
|
||||
if (bi){
|
||||
ContentItemDesignIntf* pci = dynamic_cast<ContentItemDesignIntf*>(bi->patternItem());
|
||||
ci->setContent(pci->content());
|
||||
}
|
||||
}
|
||||
//void BandDesignIntf::recalcItems(DataSourceManager* dataManager)
|
||||
//{
|
||||
// foreach(BaseDesignIntf* bi, childBaseItems()){
|
||||
// ContentItemDesignIntf* ci = dynamic_cast<ContentItemDesignIntf*>(bi);
|
||||
// if (bi){
|
||||
// ContentItemDesignIntf* pci = dynamic_cast<ContentItemDesignIntf*>(bi->patternItem());
|
||||
// ci->setContent(pci->content());
|
||||
// }
|
||||
// }
|
||||
|
||||
updateItemSize(dataManager,FirstPass,height());
|
||||
}
|
||||
// updateItemSize(dataManager,FirstPass,height());
|
||||
//}
|
||||
|
||||
BaseDesignIntf* BandDesignIntf::cloneUpperPart(int height, QObject *owner, QGraphicsItem *parent)
|
||||
{
|
||||
@@ -1159,17 +1159,6 @@ void BandDesignIntf::updateItemSize(DataSourceManager* dataManager, RenderPass p
|
||||
BaseDesignIntf::updateItemSize(dataManager, pass, maxHeight);
|
||||
}
|
||||
|
||||
void BandDesignIntf::restoreItems()
|
||||
{
|
||||
foreach(BaseDesignIntf* bi, childBaseItems()){
|
||||
ContentItemDesignIntf* ci = dynamic_cast<ContentItemDesignIntf*>(bi);
|
||||
if (ci){
|
||||
ContentItemDesignIntf* pci = dynamic_cast<ContentItemDesignIntf*>(bi->patternItem());
|
||||
ci->setContent(pci->content());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void BandDesignIntf::updateBandNameLabel()
|
||||
{
|
||||
if (m_bandNameLabel) m_bandNameLabel->updateLabel(bandTitle());
|
||||
|
Reference in New Issue
Block a user