mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-25 04:54:40 +03:00
Spliting band without AutoHeight has been fixed
This commit is contained in:
parent
f3401c4c7e
commit
80f2a135cd
@ -203,6 +203,9 @@ public:
|
|||||||
bool startNewPage() const;
|
bool startNewPage() const;
|
||||||
void setStartNewPage(bool startNewPage);
|
void setStartNewPage(bool startNewPage);
|
||||||
|
|
||||||
|
void setAutoHeight(bool value){m_autoHeight=value;}
|
||||||
|
bool autoHeight(){return m_autoHeight;}
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void bandRendered(BandDesignIntf* band);
|
void bandRendered(BandDesignIntf* band);
|
||||||
protected:
|
protected:
|
||||||
@ -211,10 +214,6 @@ protected:
|
|||||||
qreal findMaxBottom();
|
qreal findMaxBottom();
|
||||||
qreal findMaxHeight();
|
qreal findMaxHeight();
|
||||||
void trimToMaxHeight(int maxHeight);
|
void trimToMaxHeight(int maxHeight);
|
||||||
|
|
||||||
void setAutoHeight(bool value){m_autoHeight=value;}
|
|
||||||
bool autoHeight(){return m_autoHeight;}
|
|
||||||
|
|
||||||
void setBandTypeText(const QString& value);
|
void setBandTypeText(const QString& value);
|
||||||
QString bandTypeText(){return m_bandTypeText;}
|
QString bandTypeText(){return m_bandTypeText;}
|
||||||
void moveDown(){}
|
void moveDown(){}
|
||||||
|
@ -741,8 +741,10 @@ BandDesignIntf* ReportRender::sliceBand(BandDesignIntf *band, BandDesignIntf* pa
|
|||||||
while (band->height()>m_maxHeightByColumn[m_currentColumn]) {
|
while (band->height()>m_maxHeightByColumn[m_currentColumn]) {
|
||||||
band = saveUppperPartReturnBottom(band,m_maxHeightByColumn[m_currentColumn],patternBand);
|
band = saveUppperPartReturnBottom(band,m_maxHeightByColumn[m_currentColumn],patternBand);
|
||||||
if (!band->isEmpty()) {
|
if (!band->isEmpty()) {
|
||||||
|
if (band->autoHeight()){
|
||||||
band->setHeight(0);
|
band->setHeight(0);
|
||||||
band->updateItemSize(m_datasources);
|
band->updateItemSize(m_datasources);
|
||||||
|
}
|
||||||
DataBandDesignIntf* data = dynamic_cast<DataBandDesignIntf*>(band);
|
DataBandDesignIntf* data = dynamic_cast<DataBandDesignIntf*>(band);
|
||||||
if (isLast && data && data->keepFooterTogether() &&
|
if (isLast && data && data->keepFooterTogether() &&
|
||||||
band->height()<m_maxHeightByColumn[m_currentColumn] && band->sliceLastRow()
|
band->height()<m_maxHeightByColumn[m_currentColumn] && band->sliceLastRow()
|
||||||
|
Loading…
Reference in New Issue
Block a user