Changeset View
Changeset View
Standalone View
Standalone View
src/items/label/KReportItemLabel.cpp
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 34 | { | |||
---|---|---|---|---|---|
45 | 45 | | |||
46 | parseReportRect(element.toElement()); | 46 | parseReportRect(element.toElement()); | ||
47 | 47 | | |||
48 | for (int i = 0; i < nl.count(); i++) { | 48 | for (int i = 0; i < nl.count(); i++) { | ||
49 | node = nl.item(i); | 49 | node = nl.item(i); | ||
50 | n = node.nodeName(); | 50 | n = node.nodeName(); | ||
51 | 51 | | |||
52 | if (n == QLatin1String("report:text-style")) { | 52 | if (n == QLatin1String("report:text-style")) { | ||
53 | KRTextStyleData ts; | 53 | KReportTextStyleData ts; | ||
54 | if (parseReportTextStyleData(node.toElement(), &ts)) { | 54 | if (parseReportTextStyleData(node.toElement(), &ts)) { | ||
55 | m_backgroundColor->setValue(ts.backgroundColor); | 55 | m_backgroundColor->setValue(ts.backgroundColor); | ||
56 | m_foregroundColor->setValue(ts.foregroundColor); | 56 | m_foregroundColor->setValue(ts.foregroundColor); | ||
57 | m_backgroundOpacity->setValue(ts.backgroundOpacity); | 57 | m_backgroundOpacity->setValue(ts.backgroundOpacity); | ||
58 | m_font->setValue(ts.font); | 58 | m_font->setValue(ts.font); | ||
59 | 59 | | |||
60 | } | 60 | } | ||
61 | } else if (n == QLatin1String("report:line-style")) { | 61 | } else if (n == QLatin1String("report:line-style")) { | ||
▲ Show 20 Lines • Show All 83 Lines • ▼ Show 20 Line(s) | 131 | { | |||
145 | else if (t == QLatin1String("bottom")) | 145 | else if (t == QLatin1String("bottom")) | ||
146 | align |= Qt::AlignBottom; | 146 | align |= Qt::AlignBottom; | ||
147 | else | 147 | else | ||
148 | align |= Qt::AlignTop; | 148 | align |= Qt::AlignTop; | ||
149 | 149 | | |||
150 | return align; | 150 | return align; | ||
151 | } | 151 | } | ||
152 | 152 | | |||
153 | KRTextStyleData KReportItemLabel::textStyle() const | 153 | KReportTextStyleData KReportItemLabel::textStyle() const | ||
154 | { | 154 | { | ||
155 | KRTextStyleData d; | 155 | KReportTextStyleData d; | ||
156 | d.backgroundColor = m_backgroundColor->value().value<QColor>(); | 156 | d.backgroundColor = m_backgroundColor->value().value<QColor>(); | ||
157 | d.foregroundColor = m_foregroundColor->value().value<QColor>(); | 157 | d.foregroundColor = m_foregroundColor->value().value<QColor>(); | ||
158 | d.font = m_font->value().value<QFont>(); | 158 | d.font = m_font->value().value<QFont>(); | ||
159 | d.backgroundOpacity = m_backgroundOpacity->value().toInt(); | 159 | d.backgroundOpacity = m_backgroundOpacity->value().toInt(); | ||
160 | return d; | 160 | return d; | ||
161 | } | 161 | } | ||
162 | 162 | | |||
163 | KReportLineStyle KReportItemLabel::lineStyle() const | 163 | KReportLineStyle KReportItemLabel::lineStyle() const | ||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |