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