| 249 | } |
| 250 | |
| 251 | void LineWidget::saveConfig(KConfigGroup& group) const { |
| 252 | if (m_line->histogramLineTypeAvailable() || m_prefix == QLatin1String("DropLine")) |
| 253 | group.writeEntry(m_prefix + QStringLiteral("Type"), ui.cbType->currentIndex()); |
| 254 | |
| 255 | group.writeEntry(m_prefix + QStringLiteral("Style"), ui.cbStyle->currentIndex()); |
| 256 | group.writeEntry(m_prefix + QStringLiteral("Color"), ui.kcbColor->color()); |
| 257 | group.writeEntry(m_prefix + QStringLiteral("Width"), Worksheet::convertToSceneUnits(ui.sbWidth->value(), Worksheet::Unit::Point)); |
| 258 | group.writeEntry(m_prefix + QStringLiteral("Opacity"), ui.sbOpacity->value() / 100.0); |
| 259 | } |
| 260 | |
| 261 | void LineWidget::setColor(const QColor& color) { |
| 262 | ui.kcbColor->setColor(color); |
no test coverage detected