Changeset View
Changeset View
Standalone View
Standalone View
src/renderer/KReportPreRenderer.cpp
Show First 20 Lines • Show All 349 Lines • ▼ Show 20 Line(s) | 348 | foreach(KReportItemBase *ob, objects) { | |||
---|---|---|---|---|---|
350 | QVariant itemData = m_dataSource->value(ob->itemDataSource()); | 350 | QVariant itemData = m_dataSource->value(ob->itemDataSource()); | ||
351 | 351 | | |||
352 | if (ob->supportsSubQuery()) { | 352 | if (ob->supportsSubQuery()) { | ||
353 | itemHeight = ob->renderReportData(m_page, sec, offset, m_dataSource, m_scriptHandler); | 353 | itemHeight = ob->renderReportData(m_page, sec, offset, m_dataSource, m_scriptHandler); | ||
354 | } else { | 354 | } else { | ||
355 | KReportAsyncItemBase *async_ob = qobject_cast<KReportAsyncItemBase*>(ob); | 355 | KReportAsyncItemBase *async_ob = qobject_cast<KReportAsyncItemBase*>(ob); | ||
356 | if (async_ob){ | 356 | if (async_ob){ | ||
357 | //kreportDebug() << "async object"; | 357 | //kreportDebug() << "async object"; | ||
358 | asyncManager->addItem(async_ob, m_page, sec, offset, itemData, m_scriptHandler); | 358 | asyncManager->addItem(async_ob, m_page, sec, offset, async_ob->realItemData(itemData), m_scriptHandler); | ||
359 | } else { | 359 | } else { | ||
360 | //kreportDebug() << "sync object"; | 360 | //kreportDebug() << "sync object"; | ||
361 | itemHeight = ob->renderSimpleData(m_page, sec, offset, itemData, m_scriptHandler); | 361 | itemHeight = ob->renderSimpleData(m_page, sec, offset, itemData, m_scriptHandler); | ||
362 | } | 362 | } | ||
363 | } | 363 | } | ||
364 | 364 | | |||
365 | if (itemHeight > sectionHeight) { | 365 | if (itemHeight > sectionHeight) { | ||
366 | sectionHeight = itemHeight; | 366 | sectionHeight = itemHeight; | ||
▲ Show 20 Lines • Show All 331 Lines • Show Last 20 Lines |