Changeset View
Changeset View
Standalone View
Standalone View
src/items/check/KReportItemCheck.cpp
Show First 20 Lines • Show All 164 Lines • ▼ Show 20 Line(s) | 150 | #endif | |||
---|---|---|---|---|---|
165 | chk->setValue(v); | 165 | chk->setValue(v); | ||
166 | 166 | | |||
167 | if (page) { | 167 | if (page) { | ||
168 | page->insertPrimitive(chk); | 168 | page->insertPrimitive(chk); | ||
169 | } | 169 | } | ||
170 | 170 | | |||
171 | if (section) { | 171 | if (section) { | ||
172 | OROCheckBox *chk2 = dynamic_cast<OROCheckBox*>(chk->clone()); | 172 | OROCheckBox *chk2 = dynamic_cast<OROCheckBox*>(chk->clone()); | ||
173 | if (chk2) { | ||||
173 | chk2->setPosition(scenePosition(position())); | 174 | chk2->setPosition(scenePosition(position())); | ||
174 | section->addPrimitive(chk2); | 175 | section->addPrimitive(chk2); | ||
175 | } | 176 | } | ||
177 | } | ||||
176 | 178 | | |||
177 | if (!page) { | 179 | if (!page) { | ||
178 | delete chk; | 180 | delete chk; | ||
179 | } | 181 | } | ||
180 | 182 | | |||
181 | return 0; //Item doesn't stretch the section height | 183 | return 0; //Item doesn't stretch the section height | ||
182 | } | 184 | } | ||
183 | 185 | | |||
Show All 9 Lines |