Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/reports/kexireportview.cpp
Show First 20 Lines • Show All 361 Lines • ▼ Show 20 Line(s) | 357 | if (tempData()->reportSchemaChangedInPreviousView) { | |||
---|---|---|---|---|---|
362 | //qDebug() << tempData()->reportDefinition.tagName(); | 362 | //qDebug() << tempData()->reportDefinition.tagName(); | ||
363 | m_preRenderer = new KReportPreRenderer(tempData()->reportDefinition); | 363 | m_preRenderer = new KReportPreRenderer(tempData()->reportDefinition); | ||
364 | if (m_preRenderer->isValid()) { | 364 | if (m_preRenderer->isValid()) { | ||
365 | KReportDataSource *reportData = 0; | 365 | KReportDataSource *reportData = 0; | ||
366 | if (!tempData()->connectionDefinition.isNull()) { | 366 | if (!tempData()->connectionDefinition.isNull()) { | ||
367 | reportData = createSourceData(tempData()->connectionDefinition); | 367 | reportData = createSourceData(tempData()->connectionDefinition); | ||
368 | } | 368 | } | ||
369 | m_preRenderer->setSourceData(reportData); | 369 | m_preRenderer->setSourceData(reportData); | ||
370 | m_preRenderer->setScriptSource(qobject_cast<KexiReportPart*>(part())); | ||||
370 | 371 | | |||
371 | m_preRenderer->setName(window()->partItem()->name()); | 372 | m_preRenderer->setName(window()->partItem()->name()); | ||
372 | 373 | | |||
373 | //Add a kexi object to provide kexidb and extra functionality | 374 | //Add a kexi object to provide kexidb and extra functionality | ||
374 | //! @todo KEXI3 if we want this if(!m_kexi) { | 375 | //! @todo KEXI3 if we want this if(!m_kexi) { | ||
375 | // m_kexi = new KexiScriptAdaptor(); | 376 | // m_kexi = new KexiScriptAdaptor(); | ||
376 | // } | 377 | // } | ||
377 | // m_preRenderer->registerScriptObject(m_kexi, "Kexi"); | 378 | // m_preRenderer->registerScriptObject(m_kexi, "Kexi"); | ||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |