Changeset View
Changeset View
Standalone View
Standalone View
src/items/label/KReportScriptLabel.cpp
Show First 20 Lines • Show All 158 Lines • ▼ Show 20 Line(s) | 158 | { | |||
---|---|---|---|---|---|
159 | if (s < 0 || s > 5) { | 159 | if (s < 0 || s > 5) { | ||
160 | s = 1; | 160 | s = 1; | ||
161 | } | 161 | } | ||
162 | m_label->m_lineStyle->setValue(s); | 162 | m_label->m_lineStyle->setValue(s); | ||
163 | } | 163 | } | ||
164 | 164 | | |||
165 | QPointF Label::position() const | 165 | QPointF Label::position() const | ||
166 | { | 166 | { | ||
167 | return m_label->m_pos.toPoint(); | 167 | return m_label->position(); | ||
168 | } | 168 | } | ||
169 | void Label::setPosition(const QPointF &p) | 169 | void Label::setPosition(const QPointF &p) | ||
170 | { | 170 | { | ||
171 | m_label->m_pos.setPointPos(p); | 171 | m_label->setPosition(p); | ||
172 | } | 172 | } | ||
173 | 173 | | |||
174 | QSizeF Label::size() const | 174 | QSizeF Label::size() const | ||
175 | { | 175 | { | ||
176 | return m_label->m_size.toPoint(); | 176 | return m_label->size(); | ||
177 | } | 177 | } | ||
178 | void Label::setSize(const QSizeF &s) | 178 | void Label::setSize(const QSizeF &s) | ||
179 | { | 179 | { | ||
180 | m_label->m_size.setPointSize(s); | 180 | m_label->setSize(s); | ||
181 | } | 181 | } | ||
182 | } | 182 | } | ||
183 | 183 | |