alternateBackgrounColor property has been added

This commit is contained in:
Arin Alexander
2016-10-18 13:58:26 +03:00
parent dd40aa1137
commit 8ed24f9f75
5 changed files with 23 additions and 0 deletions

View File

@@ -333,6 +333,12 @@ void ReportRender::renderBand(BandDesignIntf *patternBand, ReportRender::DataRen
m_lastRenderedFooter = patternBand;
BandDesignIntf* bandClone=renderData(patternBand);
bandClone->setBackgroundColor(
(datasources()->variable(QLatin1String("line_")+patternBand->objectName().toLower()).toInt()%2!=0 ?
patternBand->backgroundColor():
patternBand->alternateBackgroundColor()
)
);
patternBand->emitBandRendered(bandClone);
if ( isLast && bandClone->keepFooterTogether() && bandClone->sliceLastRow() ){