SETTINGS
| 372 | //******************** SETTINGS **************************** |
| 373 | //********************************************************** |
| 374 | void ValueWidget::load() { |
| 375 | CONDITIONAL_LOCK_RETURN; |
| 376 | |
| 377 | ui.cbType->setCurrentIndex((int)m_value->type()); |
| 378 | ui.cbPosition->setCurrentIndex((int)m_value->position()); |
| 379 | ui.sbDistance->setValue(Worksheet::convertFromSceneUnits(m_value->distance(), Worksheet::Unit::Point)); |
| 380 | ui.sbRotation->setValue(m_value->rotationAngle()); |
| 381 | ui.sbOpacity->setValue(round(m_value->opacity()) * 100.0); |
| 382 | cbColumn->setAspect(m_value->column(), m_value->columnPath()); |
| 383 | this->updateWidgets(); |
| 384 | ui.lePrefix->setText(m_value->prefix()); |
| 385 | ui.leSuffix->setText(m_value->suffix()); |
| 386 | QFont font = m_value->font(); |
| 387 | font.setPointSizeF(round(Worksheet::convertFromSceneUnits(font.pointSizeF(), Worksheet::Unit::Point))); |
| 388 | ui.kfrFont->setFont(font); |
| 389 | ui.kcbColor->setColor(m_value->color()); |
| 390 | } |
| 391 | |
| 392 | void ValueWidget::loadConfig(const KConfigGroup& group) { |
| 393 | ui.cbType->setCurrentIndex(group.readEntry("ValuesType", (int)m_value->type())); |
nothing calls this directly
no test coverage detected