Changeset View
Changeset View
Standalone View
Standalone View
src/common/KReportDocument.cpp
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Line(s) | 66 | { | |||
---|---|---|---|---|---|
68 | init(); | 68 | init(); | ||
69 | //kreportDebug(); | 69 | //kreportDebug(); | ||
70 | if (elemSource.tagName() != QLatin1String("report:content")) { | 70 | if (elemSource.tagName() != QLatin1String("report:content")) { | ||
71 | kreportWarning() << "QDomElement is not <report:content> tag" | 71 | kreportWarning() << "QDomElement is not <report:content> tag" | ||
72 | << elemSource.text(); | 72 | << elemSource.text(); | ||
73 | return; | 73 | return; | ||
74 | } | 74 | } | ||
75 | 75 | | |||
76 | const qreal dpiX = KReportPrivate::dpiX(); | | |||
77 | const qreal dpiY = KReportPrivate::dpiY(); | | |||
78 | | ||||
79 | | ||||
80 | QDomNodeList sections = elemSource.childNodes(); | 76 | QDomNodeList sections = elemSource.childNodes(); | ||
81 | for (int nodeCounter = 0; nodeCounter < sections.count(); nodeCounter++) { | 77 | for (int nodeCounter = 0; nodeCounter < sections.count(); nodeCounter++) { | ||
82 | QDomElement elemThis = sections.item(nodeCounter).toElement(); | 78 | QDomElement elemThis = sections.item(nodeCounter).toElement(); | ||
83 | if (elemThis.tagName() == QLatin1String("report:title")) { | 79 | if (elemThis.tagName() == QLatin1String("report:title")) { | ||
84 | d->title = elemThis.text(); | 80 | d->title = elemThis.text(); | ||
85 | #ifdef KREPORT_SCRIPTING | 81 | #ifdef KREPORT_SCRIPTING | ||
86 | } else if (elemThis.tagName() == QLatin1String("report:script")) { | 82 | } else if (elemThis.tagName() == QLatin1String("report:script")) { | ||
87 | d->script = elemThis.text(); | 83 | d->script = elemThis.text(); | ||
▲ Show 20 Lines • Show All 301 Lines • Show Last 20 Lines |