Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/barcode/i2of5.cpp
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | 47 | { | |||
---|---|---|---|---|---|
49 | QBrush brush(QColor("black")); | 49 | QBrush brush(QColor("black")); | ||
50 | 50 | | |||
51 | if (!isSpace) { | 51 | if (!isSpace) { | ||
52 | ORORect * rect = new ORORect(); | 52 | ORORect * rect = new ORORect(); | ||
53 | rect->setPen(pen); | 53 | rect->setPen(pen); | ||
54 | rect->setBrush(brush); | 54 | rect->setBrush(brush); | ||
55 | rect->setRect(QRectF(startPos.x(),startPos.y(), width, r.height())); | 55 | rect->setRect(QRectF(startPos.x(),startPos.y(), width, r.height())); | ||
56 | //rect->setRotationAxis(bc->rect.topLeft()); //!< @todo check this | 56 | //rect->setRotationAxis(bc->rect.topLeft()); //!< @todo check this | ||
57 | page->addPrimitive(rect); | 57 | page->insertPrimitive(rect); | ||
58 | } | 58 | } | ||
59 | return QPointF(startPos.x() + width, startPos.y()); | 59 | return QPointF(startPos.x() + width, startPos.y()); | ||
60 | } | 60 | } | ||
61 | 61 | | |||
62 | static QPointF addBar(OROPage * page, const QRectF &r, QPointF startPos, qreal width) | 62 | static QPointF addBar(OROPage * page, const QRectF &r, QPointF startPos, qreal width) | ||
63 | { | 63 | { | ||
64 | return addElement(page, r, startPos, width, false); | 64 | return addElement(page, r, startPos, width, false); | ||
65 | } | 65 | } | ||
▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines |