Changeset View
Changeset View
Standalone View
Standalone View
src/items/text/KReportItemText.cpp
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | 37 | { | |||
---|---|---|---|---|---|
50 | 50 | | |||
51 | parseReportRect(element.toElement()); | 51 | parseReportRect(element.toElement()); | ||
52 | 52 | | |||
53 | for (int i = 0; i < nl.count(); i++) { | 53 | for (int i = 0; i < nl.count(); i++) { | ||
54 | node = nl.item(i); | 54 | node = nl.item(i); | ||
55 | n = node.nodeName(); | 55 | n = node.nodeName(); | ||
56 | 56 | | |||
57 | if (n == QLatin1String("report:text-style")) { | 57 | if (n == QLatin1String("report:text-style")) { | ||
58 | KRTextStyleData ts; | 58 | KReportTextStyleData ts; | ||
59 | if (parseReportTextStyleData(node.toElement(), &ts)) { | 59 | if (parseReportTextStyleData(node.toElement(), &ts)) { | ||
60 | m_backgroundColor->setValue(ts.backgroundColor); | 60 | m_backgroundColor->setValue(ts.backgroundColor); | ||
61 | m_foregroundColor->setValue(ts.foregroundColor); | 61 | m_foregroundColor->setValue(ts.foregroundColor); | ||
62 | m_backgroundOpacity->setValue(ts.backgroundOpacity); | 62 | m_backgroundOpacity->setValue(ts.backgroundOpacity); | ||
63 | m_font->setValue(ts.font); | 63 | m_font->setValue(ts.font); | ||
64 | 64 | | |||
65 | } | 65 | } | ||
66 | } else if (n == QLatin1String("report:line-style")) { | 66 | } else if (n == QLatin1String("report:line-style")) { | ||
▲ Show 20 Lines • Show All 98 Lines • ▼ Show 20 Line(s) | |||||
165 | 165 | | |||
166 | void KReportItemText::setBottomPadding(qreal bp) | 166 | void KReportItemText::setBottomPadding(qreal bp) | ||
167 | { | 167 | { | ||
168 | if (m_bottomPadding != bp) { | 168 | if (m_bottomPadding != bp) { | ||
169 | m_bottomPadding = bp; | 169 | m_bottomPadding = bp; | ||
170 | } | 170 | } | ||
171 | } | 171 | } | ||
172 | 172 | | |||
173 | KRTextStyleData KReportItemText::textStyle() const | 173 | KReportTextStyleData KReportItemText::textStyle() const | ||
174 | { | 174 | { | ||
175 | KRTextStyleData d; | 175 | KReportTextStyleData d; | ||
176 | d.backgroundColor = m_backgroundColor->value().value<QColor>(); | 176 | d.backgroundColor = m_backgroundColor->value().value<QColor>(); | ||
177 | d.foregroundColor = m_foregroundColor->value().value<QColor>(); | 177 | d.foregroundColor = m_foregroundColor->value().value<QColor>(); | ||
178 | d.font = m_font->value().value<QFont>(); | 178 | d.font = m_font->value().value<QFont>(); | ||
179 | d.backgroundOpacity = m_backgroundOpacity->value().toInt(); | 179 | d.backgroundOpacity = m_backgroundOpacity->value().toInt(); | ||
180 | return d; | 180 | return d; | ||
181 | } | 181 | } | ||
182 | 182 | | |||
183 | KReportLineStyle KReportItemText::lineStyle() const | 183 | KReportLineStyle KReportItemText::lineStyle() const | ||
▲ Show 20 Lines • Show All 137 Lines • Show Last 20 Lines |