Changeset View
Changeset View
Standalone View
Standalone View
libs/koreport/wrtembed/KoReportDesigner.cpp
Show First 20 Lines • Show All 190 Lines • ▼ Show 20 Line(s) | |||||
191 | } | 191 | } | ||
192 | 192 | | |||
193 | KoReportDesigner::~KoReportDesigner() | 193 | KoReportDesigner::~KoReportDesigner() | ||
194 | { | 194 | { | ||
195 | delete d->zoom; | 195 | delete d->zoom; | ||
196 | delete d; | 196 | delete d; | ||
197 | delete m_sectionData; | 197 | delete m_sectionData; | ||
198 | delete m_set; | 198 | delete m_set; | ||
199 | delete m_kordata; | ||||
199 | } | 200 | } | ||
200 | 201 | | |||
201 | ///The loading Code | 202 | ///The loading Code | ||
202 | KoReportDesigner::KoReportDesigner(QWidget *parent, const QDomElement &data) : QWidget(parent), d(new Private()) | 203 | KoReportDesigner::KoReportDesigner(QWidget *parent, const QDomElement &data) : QWidget(parent), d(new Private()) | ||
203 | { | 204 | { | ||
204 | m_kordata = 0; | 205 | m_kordata = 0; | ||
205 | 206 | | |||
206 | init(); | 207 | init(); | ||
▲ Show 20 Lines • Show All 163 Lines • ▼ Show 20 Line(s) | 370 | { | |||
370 | QPointer<SectionEditor> se = new SectionEditor(this); | 371 | QPointer<SectionEditor> se = new SectionEditor(this); | ||
371 | se->init(this); | 372 | se->init(this); | ||
372 | se->exec(); | 373 | se->exec(); | ||
373 | delete se; | 374 | delete se; | ||
374 | } | 375 | } | ||
375 | 376 | | |||
376 | void KoReportDesigner::setReportData(KoReportData* kodata) | 377 | void KoReportDesigner::setReportData(KoReportData* kodata) | ||
377 | { | 378 | { | ||
379 | if (m_kordata == kodata) { | ||||
380 | return; | ||||
381 | } | ||||
382 | delete m_kordata; | ||||
378 | m_kordata = kodata; | 383 | m_kordata = kodata; | ||
379 | slotPageButton_Pressed(); | 384 | slotPageButton_Pressed(); | ||
380 | setModified(true); | 385 | setModified(true); | ||
381 | emit reportDataChanged(); | 386 | emit reportDataChanged(); | ||
382 | } | 387 | } | ||
383 | 388 | | |||
384 | ReportSection * KoReportDesigner::section(KRSectionData::Section s) const | 389 | ReportSection * KoReportDesigner::section(KRSectionData::Section s) const | ||
385 | { | 390 | { | ||
▲ Show 20 Lines • Show All 958 Lines • Show Last 20 Lines |