Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/barcode/KReportScriptBarcode.cpp
Show All 28 Lines | |||||
29 | 29 | | |||
30 | 30 | | |||
31 | Barcode::~Barcode() | 31 | Barcode::~Barcode() | ||
32 | { | 32 | { | ||
33 | } | 33 | } | ||
34 | 34 | | |||
35 | QPointF Barcode::position() | 35 | QPointF Barcode::position() | ||
36 | { | 36 | { | ||
37 | return m_barcode->m_pos.toPoint(); | 37 | return m_barcode->position(); | ||
38 | } | 38 | } | ||
39 | void Barcode::setPosition(const QPointF& p) | 39 | void Barcode::setPosition(const QPointF& p) | ||
40 | { | 40 | { | ||
41 | m_barcode->m_pos.setPointPos(p); | 41 | m_barcode->setPosition(p); | ||
42 | } | 42 | } | ||
43 | 43 | | |||
44 | QSizeF Barcode::size() | 44 | QSizeF Barcode::size() | ||
45 | { | 45 | { | ||
46 | return m_barcode->m_size.toPoint(); | 46 | return m_barcode->size(); | ||
47 | } | 47 | } | ||
48 | void Barcode::setSize(const QSizeF& s) | 48 | void Barcode::setSize(const QSizeF& s) | ||
49 | { | 49 | { | ||
50 | m_barcode->m_size.setPointSize(s); | 50 | m_barcode->setSize(s); | ||
51 | } | 51 | } | ||
52 | 52 | | |||
53 | int Barcode::horizontalAlignment() | 53 | int Barcode::horizontalAlignment() | ||
54 | { | 54 | { | ||
55 | const QString a = m_barcode->m_horizontalAlignment->value().toString().toLower(); | 55 | const QString a = m_barcode->m_horizontalAlignment->value().toString().toLower(); | ||
56 | 56 | | |||
57 | if (a == QLatin1String("left")) { | 57 | if (a == QLatin1String("left")) { | ||
58 | return -1; | 58 | return -1; | ||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |