Changeset View
Changeset View
Standalone View
Standalone View
src/renderer/scripting/KReportScriptSection.cpp
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | |||||
45 | void Section::setBackgroundColor(const QColor &c) | 45 | void Section::setBackgroundColor(const QColor &c) | ||
46 | { | 46 | { | ||
47 | //kreportDebug() << c.name(); | 47 | //kreportDebug() << c.name(); | ||
48 | m_section->m_backgroundColor->setValue(c); | 48 | m_section->m_backgroundColor->setValue(c); | ||
49 | } | 49 | } | ||
50 | 50 | | |||
51 | qreal Section::height() const | 51 | qreal Section::height() const | ||
52 | { | 52 | { | ||
53 | return m_section->m_height->value().toDouble(); | 53 | return m_section->height(); | ||
54 | } | 54 | } | ||
55 | 55 | | |||
56 | void Section::setHeight(qreal h) | 56 | void Section::setHeight(qreal h) | ||
57 | { | 57 | { | ||
58 | m_section->m_height->setValue(h); | 58 | m_section->setHeight(h); | ||
59 | } | 59 | } | ||
60 | 60 | | |||
61 | QString Section::name() const | 61 | QString Section::name() const | ||
62 | { | 62 | { | ||
63 | return m_section->objectName(); | 63 | return m_section->objectName(); | ||
64 | } | 64 | } | ||
65 | 65 | | |||
66 | QObject* Section::objectByNumber(int i) | 66 | QObject* Section::objectByNumber(int i) | ||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |