Changeset View
Changeset View
Standalone View
Standalone View
src/items/field/KReportItemField.cpp
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | 62 | if (parseReportTextStyleData(node.toElement(), &ts)) { | |||
---|---|---|---|---|---|
64 | m_foregroundColor->setValue(ts.foregroundColor); | 64 | m_foregroundColor->setValue(ts.foregroundColor); | ||
65 | m_backgroundOpacity->setValue(ts.backgroundOpacity); | 65 | m_backgroundOpacity->setValue(ts.backgroundOpacity); | ||
66 | m_font->setValue(ts.font); | 66 | m_font->setValue(ts.font); | ||
67 | 67 | | |||
68 | } | 68 | } | ||
69 | } else if (n == QLatin1String("report:line-style")) { | 69 | } else if (n == QLatin1String("report:line-style")) { | ||
70 | KReportLineStyle ls; | 70 | KReportLineStyle ls; | ||
71 | if (parseReportLineStyleData(node.toElement(), &ls)) { | 71 | if (parseReportLineStyleData(node.toElement(), &ls)) { | ||
72 | m_lineWeight->setValue(ls.width()); | 72 | m_lineWeight->setValue((int)ls.width()); | ||
staniek: Same note | |||||
73 | m_lineColor->setValue(ls.color()); | 73 | m_lineColor->setValue(ls.color()); | ||
74 | m_lineStyle->setValue(QPen(ls.penStyle())); | 74 | m_lineStyle->setValue(static_cast<int>(ls.penStyle())); | ||
75 | } | 75 | } | ||
76 | } else { | 76 | } else { | ||
77 | kreportpluginWarning() << "while parsing field element encountered unknown element: " << n; | 77 | kreportpluginWarning() << "while parsing field element encountered unknown element: " << n; | ||
78 | } | 78 | } | ||
79 | } | 79 | } | ||
80 | } | 80 | } | ||
81 | 81 | | |||
82 | KReportItemField::~KReportItemField() | 82 | KReportItemField::~KReportItemField() | ||
▲ Show 20 Lines • Show All 209 Lines • Show Last 20 Lines |
Same note