Changeset View
Changeset View
Standalone View
Standalone View
src/items/check/KReportScriptCheck.cpp
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Line(s) | 89 | { | |||
---|---|---|---|---|---|
90 | if (s < 0 || s > 5) { | 90 | if (s < 0 || s > 5) { | ||
91 | s = 1; | 91 | s = 1; | ||
92 | } | 92 | } | ||
93 | m_check->m_lineStyle->setValue(s); | 93 | m_check->m_lineStyle->setValue(s); | ||
94 | } | 94 | } | ||
95 | 95 | | |||
96 | QPointF CheckBox::position() const | 96 | QPointF CheckBox::position() const | ||
97 | { | 97 | { | ||
98 | return m_check->position(); | 98 | return KReportItemBase::scenePosition(m_check->position()); | ||
99 | } | 99 | } | ||
100 | | ||||
100 | void CheckBox::setPosition(const QPointF &p) | 101 | void CheckBox::setPosition(const QPointF &p) | ||
101 | { | 102 | { | ||
102 | m_check->setPosition(p); | 103 | m_check->setPosition(KReportItemBase::positionFromScene(p)); | ||
103 | } | 104 | } | ||
104 | 105 | | |||
105 | QSizeF CheckBox::size() const | 106 | QSizeF CheckBox::size() const | ||
106 | { | 107 | { | ||
107 | return m_check->size(); | 108 | return KReportItemBase::sceneSize(m_check->size()); | ||
108 | } | 109 | } | ||
110 | | ||||
109 | void CheckBox::setSize(const QSizeF &s) | 111 | void CheckBox::setSize(const QSizeF &s) | ||
110 | { | 112 | { | ||
111 | m_check->setSize(s); | 113 | m_check->setSize(KReportItemBase::sizeFromScene(s)); | ||
112 | } | 114 | } | ||
113 | } | 115 | } | ||
114 | |