Changeset View
Changeset View
Standalone View
Standalone View
src/common/KReportItemLine.cpp
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Line(s) | 117 | { | |||
---|---|---|---|---|---|
126 | e += offset; | 126 | e += offset; | ||
127 | 127 | | |||
128 | ln->setStartPoint(s); | 128 | ln->setStartPoint(s); | ||
129 | ln->setEndPoint(e); | 129 | ln->setEndPoint(e); | ||
130 | ln->setLineStyle(lineStyle()); | 130 | ln->setLineStyle(lineStyle()); | ||
131 | if (page) page->insertPrimitive(ln); | 131 | if (page) page->insertPrimitive(ln); | ||
132 | 132 | | |||
133 | OROLine *l2 = dynamic_cast<OROLine*>(ln->clone()); | 133 | OROLine *l2 = dynamic_cast<OROLine*>(ln->clone()); | ||
134 | if (l2) { | ||||
134 | l2->setStartPoint(m_start->value().toPointF()); | 135 | l2->setStartPoint(m_start->value().toPointF()); | ||
135 | l2->setEndPoint(m_end->value().toPointF()); | 136 | l2->setEndPoint(m_end->value().toPointF()); | ||
136 | if (section) section->addPrimitive(l2); | | |||
137 | 137 | | |||
138 | if (section) section->addPrimitive(l2); | ||||
139 | } | ||||
staniek: Good one. | |||||
138 | return 0; | 140 | return 0; | ||
139 | } | 141 | } | ||
140 | 142 | | |||
141 | void KReportItemLine::setUnit(const KReportUnit &u) | 143 | void KReportItemLine::setUnit(const KReportUnit &u) | ||
142 | { | 144 | { | ||
143 | m_start->setOption("unit", u.symbol()); | 145 | m_start->setOption("unit", u.symbol()); | ||
144 | m_end->setOption("unit", u.symbol()); | 146 | m_end->setOption("unit", u.symbol()); | ||
145 | } | 147 | } | ||
Show All 11 Lines |
Good one.