mirror of
https://github.com/fralx/LimeReport.git
synced 2025-11-25 00:18:06 +03:00
keepTopSpace property added to band
This commit is contained in:
@@ -93,16 +93,27 @@ void ItemsContainerDesignInft::arrangeSubItems(RenderPass pass, DataSourceManage
|
||||
|
||||
qreal ItemsContainerDesignInft::findMaxBottom() const
|
||||
{
|
||||
qreal maxBottom=0;
|
||||
qreal maxBottom = 0;
|
||||
foreach(QGraphicsItem* item,childItems()){
|
||||
BaseDesignIntf* subItem = dynamic_cast<BaseDesignIntf *>(item);
|
||||
if(subItem)
|
||||
if ( subItem->isVisible() && (subItem->geometry().bottom()>maxBottom) )
|
||||
maxBottom=subItem->geometry().bottom();
|
||||
maxBottom = subItem->geometry().bottom();
|
||||
}
|
||||
return maxBottom;
|
||||
}
|
||||
|
||||
qreal ItemsContainerDesignInft::findMinTop() const{
|
||||
qreal minTop = height();
|
||||
foreach(QGraphicsItem* item,childItems()){
|
||||
BaseDesignIntf* subItem = dynamic_cast<BaseDesignIntf *>(item);
|
||||
if(subItem)
|
||||
if ( subItem->isVisible() && (subItem->geometry().top()<minTop) )
|
||||
minTop = subItem->geometry().top();
|
||||
}
|
||||
return minTop > 0 ? minTop : 0;
|
||||
}
|
||||
|
||||
qreal ItemsContainerDesignInft::findMaxHeight() const
|
||||
{
|
||||
qreal maxHeight=0;
|
||||
|
||||
Reference in New Issue
Block a user