Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/barcode/KReportDesignerItemBarcode.cpp
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | |||||
46 | 46 | | |||
47 | } | 47 | } | ||
48 | // methods (constructors) | 48 | // methods (constructors) | ||
49 | KReportDesignerItemBarcode::KReportDesignerItemBarcode(KReportDesigner * rw, QGraphicsScene* scene, const QPointF &pos) | 49 | KReportDesignerItemBarcode::KReportDesignerItemBarcode(KReportDesigner * rw, QGraphicsScene* scene, const QPointF &pos) | ||
50 | : KReportDesignerItemRectBase(rw, this) | 50 | : KReportDesignerItemRectBase(rw, this) | ||
51 | { | 51 | { | ||
52 | Q_UNUSED(pos); | 52 | Q_UNUSED(pos); | ||
53 | init(scene); | 53 | init(scene); | ||
54 | setSceneRect(properRect(*rw, m_minWidthTotal*m_dpiX, m_minHeight*m_dpiY)); | 54 | setSceneRect(properRect(*rw, m_minWidthTotal*dpiX(), m_minHeight*dpiY())); | ||
55 | nameProperty()->setValue(designer()->suggestEntityName(typeName())); | 55 | nameProperty()->setValue(designer()->suggestEntityName(typeName())); | ||
56 | } | 56 | } | ||
57 | 57 | | |||
58 | KReportDesignerItemBarcode::KReportDesignerItemBarcode(const QDomNode & element, KReportDesigner * rw, QGraphicsScene* scene) | 58 | KReportDesignerItemBarcode::KReportDesignerItemBarcode(const QDomNode & element, KReportDesigner * rw, QGraphicsScene* scene) | ||
59 | : KReportItemBarcode(element), KReportDesignerItemRectBase(rw, this) | 59 | : KReportItemBarcode(element), KReportDesignerItemRectBase(rw, this) | ||
60 | { | 60 | { | ||
61 | init(scene); | 61 | init(scene); | ||
62 | setSceneRect(KReportItemBase::scenePosition(item()->position()), KReportItemBase::sceneSize(item()->size())); | 62 | setSceneRect(KReportItemBase::scenePosition(item()->position()), KReportItemBase::sceneSize(item()->size())); | ||
▲ Show 20 Lines • Show All 111 Lines • Show Last 20 Lines |