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