Changeset View
Changeset View
Standalone View
Standalone View
src/wrtembed/KReportDesignerSection.cpp
Show First 20 Lines • Show All 227 Lines • ▼ Show 20 Line(s) | 227 | if (plugin) { | |||
---|---|---|---|---|---|
228 | QObject *obj = plugin->createDesignerInstance(node, d->reportDesigner, d->scene); | 228 | QObject *obj = plugin->createDesignerInstance(node, d->reportDesigner, d->scene); | ||
229 | if (obj) { | 229 | if (obj) { | ||
230 | KReportDesignerItemRectBase *entity = dynamic_cast<KReportDesignerItemRectBase*>(obj); | 230 | KReportDesignerItemRectBase *entity = dynamic_cast<KReportDesignerItemRectBase*>(obj); | ||
231 | if (entity) { | 231 | if (entity) { | ||
232 | entity->setVisible(true); | 232 | entity->setVisible(true); | ||
233 | } | 233 | } | ||
234 | KReportItemBase *item = dynamic_cast<KReportItemBase*>(obj); | 234 | KReportItemBase *item = dynamic_cast<KReportItemBase*>(obj); | ||
235 | if (item) { | 235 | if (item) { | ||
236 | item->setUnit(d->reportDesigner->pageUnit()); | ||||
236 | KReportDesigner::addMetaProperties(item->propertySet(), | 237 | KReportDesigner::addMetaProperties(item->propertySet(), | ||
237 | plugin->metaData()->name(), | 238 | plugin->metaData()->name(), | ||
238 | plugin->metaData()->iconName()); | 239 | plugin->metaData()->iconName()); | ||
239 | } | 240 | } | ||
240 | continue; | 241 | continue; | ||
241 | } | 242 | } | ||
242 | } | 243 | } | ||
243 | } | 244 | } | ||
▲ Show 20 Lines • Show All 183 Lines • Show Last 20 Lines |