Changeset View
Changeset View
Standalone View
Standalone View
src/renderer/KReportScreenRenderer_p.cpp
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | 41 | { | |||
---|---|---|---|---|---|
47 | 47 | | |||
48 | OROPage *p = document->page(page); | 48 | OROPage *p = document->page(page); | ||
49 | 49 | | |||
50 | if (!p) { | 50 | if (!p) { | ||
51 | return false; | 51 | return false; | ||
52 | } | 52 | } | ||
53 | 53 | | |||
54 | // Render Page Objects | 54 | // Render Page Objects | ||
55 | for (int i = 0; i < p->primitives(); i++) { | 55 | for (int i = 0; i < p->primitiveCount(); i++) { | ||
56 | OROPrimitive *prim = p->primitive(i); | 56 | OROPrimitive *prim = p->primitive(i); | ||
57 | 57 | | |||
58 | if (prim->type() == OROTextBox::TextBox) { | 58 | if (prim->type() == OROTextBox::TextBox) { | ||
59 | OROTextBox *tb = dynamic_cast<OROTextBox*>(prim); | 59 | OROTextBox *tb = dynamic_cast<OROTextBox*>(prim); | ||
60 | 60 | | |||
61 | QPointF ps = tb->position(); | 61 | QPointF ps = tb->position(); | ||
62 | QSizeF sz = tb->size(); | 62 | QSizeF sz = tb->size(); | ||
63 | QRectF rc = QRectF(ps.x(), ps.y(), sz.width(), sz.height()); | 63 | QRectF rc = QRectF(ps.x(), ps.y(), sz.width(), sz.height()); | ||
▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines |