Changeset View
Changeset View
Standalone View
Standalone View
src/wrtembed/KReportDesigner.cpp
Show First 20 Lines • Show All 176 Lines • ▼ Show 20 Line(s) | 163 | #endif | |||
---|---|---|---|---|---|
177 | qreal releaseX = -1; | 177 | qreal releaseX = -1; | ||
178 | qreal releaseY = -1; | 178 | qreal releaseY = -1; | ||
179 | 179 | | |||
180 | bool modified = false; // true if this document has been modified, false otherwise | 180 | bool modified = false; // true if this document has been modified, false otherwise | ||
181 | 181 | | |||
182 | QString originalInterpreter; //Value of the script interpreter at load time | 182 | QString originalInterpreter; //Value of the script interpreter at load time | ||
183 | QString originalScript; //Value of the script at load time | 183 | QString originalScript; //Value of the script at load time | ||
184 | 184 | | |||
185 | KReportData *kordata = nullptr; | 185 | KReportDataSource *kordata = nullptr; | ||
staniek: kordata -> dataSource | |||||
186 | }; | 186 | }; | ||
187 | 187 | | |||
188 | KReportDesigner::KReportDesigner(QWidget * parent) | 188 | KReportDesigner::KReportDesigner(QWidget * parent) | ||
189 | : QWidget(parent), d(new Private()) | 189 | : QWidget(parent), d(new Private()) | ||
190 | { | 190 | { | ||
191 | init(); | 191 | init(); | ||
192 | } | 192 | } | ||
193 | 193 | | |||
▲ Show 20 Lines • Show All 242 Lines • ▼ Show 20 Line(s) | |||||
436 | } | 436 | } | ||
437 | 437 | | |||
438 | void KReportDesigner::slotSectionEditor() | 438 | void KReportDesigner::slotSectionEditor() | ||
439 | { | 439 | { | ||
440 | KReportSectionEditor se(this); | 440 | KReportSectionEditor se(this); | ||
441 | (void)se.exec(); | 441 | (void)se.exec(); | ||
442 | } | 442 | } | ||
443 | 443 | | |||
444 | void KReportDesigner::setReportData(KReportData* kodata) | 444 | void KReportDesigner::setReportData(KReportDataSource* kodata) | ||
staniek: [ ] kodata -> source | |||||
445 | { | 445 | { | ||
446 | if (d->kordata == kodata) { | 446 | if (d->kordata == kodata) { | ||
447 | return; | 447 | return; | ||
448 | } | 448 | } | ||
449 | delete d->kordata; | 449 | delete d->kordata; | ||
450 | 450 | | |||
451 | d->kordata = kodata; | 451 | d->kordata = kodata; | ||
452 | slotPageButton_Pressed(); | 452 | slotPageButton_Pressed(); | ||
▲ Show 20 Lines • Show All 190 Lines • ▼ Show 20 Line(s) | 642 | { | |||
643 | return d->set; | 643 | return d->set; | ||
644 | } | 644 | } | ||
645 | 645 | | |||
646 | KPropertySet* KReportDesigner::itemPropertySet() const | 646 | KPropertySet* KReportDesigner::itemPropertySet() const | ||
647 | { | 647 | { | ||
648 | return d->itmset; | 648 | return d->itmset; | ||
649 | } | 649 | } | ||
650 | 650 | | |||
651 | KReportData *KReportDesigner::reportData() const | 651 | KReportDataSource *KReportDesigner::reportData() const | ||
652 | { | 652 | { | ||
653 | return d->kordata; | 653 | return d->kordata; | ||
654 | } | 654 | } | ||
655 | 655 | | |||
656 | KReportDesignerSectionDetail * KReportDesigner::detailSection() const | 656 | KReportDesignerSectionDetail * KReportDesigner::detailSection() const | ||
657 | { | 657 | { | ||
658 | return d->detail; | 658 | return d->detail; | ||
659 | } | 659 | } | ||
▲ Show 20 Lines • Show All 874 Lines • Show Last 20 Lines |
kordata -> dataSource