Первая запись «красится» дефолтным цветом, вторя и последующие - альтернативным.
patch:
--- src/plugins/core_plugins/bands/detail/detail.cpp +++ src/plugins/core_plugins/bands/detail/detail.cpp @@ -188,9 +188,10 @@ bool Detail::renderPrepare() { emit printCreateBefore(); setRenderingPointer( new DetailPrivate(*(reinterpret_cast<DetailPrivate*>(d_ptr)))); - Q_D(Detail); emit printDataBefore(); + Q_D(Detail); + if (d->forceNewPage) m_renderer->newPage(); @@ -199,7 +200,7 @@ bool Detail::renderPrepare() d->bgBrush.setColor(d->bgBrush.color().darker(110)); else d->bgBrush = d->alternateBrush; - } else + } if (d->zebra) (reinterpret_cast<DetailPrivate*>(orig_ptr))->alternateRow = !d->alternateRow;
Log in to post a comment.
patch:
Last edit: Alexander 2015-09-05