Changeset View
Changeset View
Standalone View
Standalone View
src/renderer/KReportPreRenderer.cpp
Show First 20 Lines • Show All 391 Lines • ▼ Show 20 Line(s) | 385 | { | |||
---|---|---|---|---|---|
392 | 392 | | |||
393 | connect(this, SIGNAL(renderingSection(KReportSectionData*,OROPage*,QPointF)), m_scriptHandler, SLOT(slotEnteredSection(KReportSectionData*,OROPage*,QPointF))); | 393 | connect(this, SIGNAL(renderingSection(KReportSectionData*,OROPage*,QPointF)), m_scriptHandler, SLOT(slotEnteredSection(KReportSectionData*,OROPage*,QPointF))); | ||
394 | } | 394 | } | ||
395 | #endif | 395 | #endif | ||
396 | 396 | | |||
397 | void KReportPreRendererPrivate::asyncItemsFinished() | 397 | void KReportPreRendererPrivate::asyncItemsFinished() | ||
398 | { | 398 | { | ||
399 | //kreportDebug() << "Finished rendering async items"; | 399 | //kreportDebug() << "Finished rendering async items"; | ||
400 | delete asyncManager; | 400 | asyncManager->deleteLater(); | ||
401 | emit finishedAllASyncItems(); | ||||
staniek: -> emit finishedAllASyncItems() | |||||
Don't we need to call deleteLater() on asyncManager instead because this slot is connected to asyncManager? staniek: Don't we need to call deleteLater() on asyncManager instead because this slot is connected to… | |||||
401 | } | 402 | } | ||
402 | 403 | | |||
403 | bool KReportPreRendererPrivate::generateDocument() | 404 | bool KReportPreRendererPrivate::generateDocument() | ||
404 | { | 405 | { | ||
405 | if (!m_kodata) { | 406 | if (!m_kodata) { | ||
406 | m_kodata = m_oneRecord; | 407 | m_kodata = m_oneRecord; | ||
407 | } | 408 | } | ||
408 | 409 | | |||
▲ Show 20 Lines • Show All 207 Lines • ▼ Show 20 Line(s) | |||||
616 | } | 617 | } | ||
617 | 618 | | |||
618 | //===========================KReportPreRenderer=============================== | 619 | //===========================KReportPreRenderer=============================== | ||
619 | 620 | | |||
620 | KReportPreRenderer::KReportPreRenderer(const QDomElement & document) | 621 | KReportPreRenderer::KReportPreRenderer(const QDomElement & document) | ||
621 | : d(new KReportPreRendererPrivate(this)) | 622 | : d(new KReportPreRendererPrivate(this)) | ||
622 | { | 623 | { | ||
623 | setDocument(document); | 624 | setDocument(document); | ||
625 | connect(d, &KReportPreRendererPrivate::finishedAllASyncItems, this, &KReportPreRenderer::finishedAllASyncItems); | ||||
626 | | ||||
624 | } | 627 | } | ||
625 | 628 | | |||
626 | KReportPreRenderer::~KReportPreRenderer() | 629 | KReportPreRenderer::~KReportPreRenderer() | ||
627 | { | 630 | { | ||
628 | delete d; | 631 | delete d; | ||
629 | } | 632 | } | ||
630 | 633 | | |||
631 | void KReportPreRenderer::setName(const QString &n) | 634 | void KReportPreRenderer::setName(const QString &n) | ||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |
-> emit finishedAllASyncItems()