Changeset View
Changeset View
Standalone View
Standalone View
src/common/KReportUtils.cpp
Show First 20 Lines • Show All 476 Lines • ▼ Show 20 Line(s) | 464 | { | |||
---|---|---|---|---|---|
477 | return true; | 477 | return true; | ||
478 | } | 478 | } | ||
479 | 479 | | |||
480 | bool KReportUtils::parseReportLineStyleData(const QDomElement & elemSource, KReportLineStyle *ls) | 480 | bool KReportUtils::parseReportLineStyleData(const QDomElement & elemSource, KReportLineStyle *ls) | ||
481 | { | 481 | { | ||
482 | Q_ASSERT(ls); | 482 | Q_ASSERT(ls); | ||
483 | if (elemSource.tagName() == QLatin1String("report:line-style")) { | 483 | if (elemSource.tagName() == QLatin1String("report:line-style")) { | ||
484 | ls->setColor(QColor(elemSource.attribute(QLatin1String("report:line-color"), QLatin1String("#ffffff")))); | 484 | ls->setColor(QColor(elemSource.attribute(QLatin1String("report:line-color"), QLatin1String("#ffffff")))); | ||
485 | ls->setWidth(elemSource.attribute(QLatin1String("report:line-weight"), QLatin1String("0")).toInt()); | 485 | ls->setWidth(elemSource.attribute(QLatin1String("report:line-weight"), QLatin1String("0.0")).toDouble()); | ||
486 | 486 | | |||
487 | QString l = elemSource.attribute(QLatin1String("report:line-style"), QLatin1String("nopen")); | 487 | QString l = elemSource.attribute(QLatin1String("report:line-style"), QLatin1String("nopen")); | ||
488 | if (l == QLatin1String("nopen")) { | 488 | if (l == QLatin1String("nopen")) { | ||
489 | ls->setPenStyle(Qt::NoPen); | 489 | ls->setPenStyle(Qt::NoPen); | ||
490 | } else if (l == QLatin1String("solid")) { | 490 | } else if (l == QLatin1String("solid")) { | ||
491 | ls->setPenStyle(Qt::SolidLine); | 491 | ls->setPenStyle(Qt::SolidLine); | ||
492 | } else if (l == QLatin1String("dash")) { | 492 | } else if (l == QLatin1String("dash")) { | ||
493 | ls->setPenStyle(Qt::DashLine); | 493 | ls->setPenStyle(Qt::DashLine); | ||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |