diff --git a/src/common/KReportItemLine.cpp b/src/common/KReportItemLine.cpp --- a/src/common/KReportItemLine.cpp +++ b/src/common/KReportItemLine.cpp @@ -53,9 +53,9 @@ if (n == QLatin1String("report:line-style")) { KReportLineStyle ls; if (parseReportLineStyleData(node.toElement(), &ls)) { - m_lineWeight->setValue(ls.width()); + m_lineWeight->setValue((int)ls.width()); m_lineColor->setValue(ls.color()); - m_lineStyle->setValue(int(ls.penStyle())); + m_lineStyle->setValue(static_cast(ls.penStyle())); } } else { kreportWarning() << "while parsing line element encountered unknown element: " << n; diff --git a/src/items/check/KReportItemCheck.cpp b/src/items/check/KReportItemCheck.cpp --- a/src/items/check/KReportItemCheck.cpp +++ b/src/items/check/KReportItemCheck.cpp @@ -55,9 +55,9 @@ if (n == QLatin1String("report:line-style")) { KReportLineStyle ls; if (parseReportLineStyleData(node.toElement(), &ls)) { - m_lineWeight->setValue(ls.width()); + m_lineWeight->setValue((int)ls.width()); m_lineColor->setValue(ls.color()); - m_lineStyle->setValue(QPen(ls.penStyle())); + m_lineStyle->setValue(static_cast(ls.penStyle())); } } else { kreportpluginWarning() << "while parsing check element encountered unknown element: " << n; diff --git a/src/items/field/KReportItemField.cpp b/src/items/field/KReportItemField.cpp --- a/src/items/field/KReportItemField.cpp +++ b/src/items/field/KReportItemField.cpp @@ -69,9 +69,9 @@ } else if (n == QLatin1String("report:line-style")) { KReportLineStyle ls; if (parseReportLineStyleData(node.toElement(), &ls)) { - m_lineWeight->setValue(ls.width()); + m_lineWeight->setValue((int)ls.width()); m_lineColor->setValue(ls.color()); - m_lineStyle->setValue(QPen(ls.penStyle())); + m_lineStyle->setValue(static_cast(ls.penStyle())); } } else { kreportpluginWarning() << "while parsing field element encountered unknown element: " << n; diff --git a/src/items/label/KReportItemLabel.cpp b/src/items/label/KReportItemLabel.cpp --- a/src/items/label/KReportItemLabel.cpp +++ b/src/items/label/KReportItemLabel.cpp @@ -61,9 +61,9 @@ } else if (n == QLatin1String("report:line-style")) { KReportLineStyle ls; if (parseReportLineStyleData(node.toElement(), &ls)) { - m_lineWeight->setValue(ls.width()); + m_lineWeight->setValue((int)ls.width()); m_lineColor->setValue(ls.color()); - m_lineStyle->setValue(QPen(ls.penStyle())); + m_lineStyle->setValue(static_cast(ls.penStyle())); } } else { kreportpluginWarning() << "while parsing label element encountered unknown element: " << n; diff --git a/src/items/text/KReportItemText.cpp b/src/items/text/KReportItemText.cpp --- a/src/items/text/KReportItemText.cpp +++ b/src/items/text/KReportItemText.cpp @@ -65,9 +65,9 @@ } else if (n == QLatin1String("report:line-style")) { KReportLineStyle ls; if (parseReportLineStyleData(node.toElement(), &ls)) { - m_lineWeight->setValue(ls.width()); + m_lineWeight->setValue((int)ls.width()); m_lineColor->setValue(ls.color()); - m_lineStyle->setValue(QPen(ls.penStyle())); + m_lineStyle->setValue(static_cast(ls.penStyle())); } } else { kreportpluginWarning() << "while parsing field element encountered unknown element: " << n;