MCPcopy Create free account
hub / github.com/KDE/labplot / load

Method load

src/frontend/widgets/ValueWidget.cpp:374–390  ·  view source on GitHub ↗

SETTINGS

Source from the content-addressed store, hash-verified

372//******************** SETTINGS ****************************
373//**********************************************************
374void 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
392void ValueWidget::loadConfig(const KConfigGroup& group) {
393 ui.cbType->setCurrentIndex(group.readEntry("ValuesType", (int)m_value->type()));

Callers

nothing calls this directly

Calls 13

updateWidgetsMethod · 0.95
positionMethod · 0.80
setAspectMethod · 0.80
suffixMethod · 0.80
fontMethod · 0.80
setCurrentIndexMethod · 0.45
typeMethod · 0.45
setValueMethod · 0.45
columnMethod · 0.45
setTextMethod · 0.45
setFontMethod · 0.45
setColorMethod · 0.45

Tested by

no test coverage detected