Changeset View
Changeset View
Standalone View
Standalone View
src/common/KReportItemLine.cpp
Show First 20 Lines • Show All 116 Lines • ▼ Show 20 Line(s) | 111 | { | |||
---|---|---|---|---|---|
117 | QPointF e = m_end.toScene(); | 117 | QPointF e = m_end.toScene(); | ||
118 | 118 | | |||
119 | s += offset; | 119 | s += offset; | ||
120 | e += offset; | 120 | e += offset; | ||
121 | 121 | | |||
122 | ln->setStartPoint(s); | 122 | ln->setStartPoint(s); | ||
123 | ln->setEndPoint(e); | 123 | ln->setEndPoint(e); | ||
124 | ln->setLineStyle(lineStyle()); | 124 | ln->setLineStyle(lineStyle()); | ||
125 | if (page) page->addPrimitive(ln); | 125 | if (page) page->insertPrimitive(ln); | ||
126 | 126 | | |||
127 | OROLine *l2 = dynamic_cast<OROLine*>(ln->clone()); | 127 | OROLine *l2 = dynamic_cast<OROLine*>(ln->clone()); | ||
128 | l2->setStartPoint(m_start.toPoint()); | 128 | l2->setStartPoint(m_start.toPoint()); | ||
129 | l2->setEndPoint(m_end.toPoint()); | 129 | l2->setEndPoint(m_end.toPoint()); | ||
130 | if (section) section->addPrimitive(l2); | 130 | if (section) section->addPrimitive(l2); | ||
131 | 131 | | |||
132 | return 0; | 132 | return 0; | ||
133 | } | 133 | } | ||
Show All 17 Lines |