Changeset View
Changeset View
Standalone View
Standalone View
src/items/text/KReportItemText.cpp
Show First 20 Lines • Show All 264 Lines • ▼ Show 20 Line(s) | 248 | if (separator == QLatin1Char('\n')) { | |||
---|---|---|---|---|---|
265 | tb->setLineStyle(lineStyle()); | 265 | tb->setLineStyle(lineStyle()); | ||
266 | 266 | | |||
267 | if (page) { | 267 | if (page) { | ||
268 | page->insertPrimitive(tb); | 268 | page->insertPrimitive(tb); | ||
269 | } | 269 | } | ||
270 | 270 | | |||
271 | if (section) { | 271 | if (section) { | ||
272 | OROTextBox *tb2 = dynamic_cast<OROTextBox*>(tb->clone()); | 272 | OROTextBox *tb2 = dynamic_cast<OROTextBox*>(tb->clone()); | ||
273 | if (tb2) { | ||||
273 | tb2->setPosition(scenePosition(position())); | 274 | tb2->setPosition(scenePosition(position())); | ||
274 | section->addPrimitive(tb2); | 275 | section->addPrimitive(tb2); | ||
275 | } | 276 | } | ||
277 | } | ||||
276 | 278 | | |||
277 | if (!page) { | 279 | if (!page) { | ||
278 | delete tb; | 280 | delete tb; | ||
279 | } | 281 | } | ||
280 | 282 | | |||
281 | intStretch += intRectHeight; | 283 | intStretch += intRectHeight; | ||
282 | intLineCounter++; | 284 | intLineCounter++; | ||
283 | } | 285 | } | ||
Show All 32 Lines |