Changeset View
Changeset View
Standalone View
Standalone View
src/items/image/KReportScriptImage.cpp
Show All 29 Lines | |||||
30 | 30 | | |||
31 | 31 | | |||
32 | Image::~Image() | 32 | Image::~Image() | ||
33 | { | 33 | { | ||
34 | } | 34 | } | ||
35 | 35 | | |||
36 | QPointF Image::position() const | 36 | QPointF Image::position() const | ||
37 | { | 37 | { | ||
38 | return m_image->m_pos.toPoint(); | 38 | return m_image->position(); | ||
39 | } | 39 | } | ||
40 | void Image::setPosition(const QPointF& p) | 40 | void Image::setPosition(const QPointF& p) | ||
41 | { | 41 | { | ||
42 | m_image->m_pos.setPointPos(p); | 42 | m_image->setPosition(p); | ||
43 | } | 43 | } | ||
44 | 44 | | |||
45 | QSizeF Image::size() const | 45 | QSizeF Image::size() const | ||
46 | { | 46 | { | ||
47 | return m_image->m_size.toPoint(); | 47 | return m_image->size(); | ||
48 | } | 48 | } | ||
49 | void Image::setSize(const QSizeF& s) | 49 | void Image::setSize(const QSizeF& s) | ||
50 | { | 50 | { | ||
51 | m_image->m_size.setPointSize(s); | 51 | m_image->setSize(s); | ||
52 | } | 52 | } | ||
53 | 53 | | |||
54 | QString Image::resizeMode() const | 54 | QString Image::resizeMode() const | ||
55 | { | 55 | { | ||
56 | return m_image->m_resizeMode->value().toString(); | 56 | return m_image->m_resizeMode->value().toString(); | ||
57 | } | 57 | } | ||
58 | 58 | | |||
59 | void Image::setResizeMode(const QString &rm) | 59 | void Image::setResizeMode(const QString &rm) | ||
Show All 19 Lines |