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

Method saveConfig

src/frontend/widgets/ValueWidget.cpp:407–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407void ValueWidget::saveConfig(KConfigGroup& group) const {
408 group.writeEntry("ValuesType", ui.cbType->currentIndex());
409 group.writeEntry("ValuesPosition", ui.cbPosition->currentIndex());
410 group.writeEntry("ValuesDistance", Worksheet::convertToSceneUnits(ui.sbDistance->value(), Worksheet::Unit::Point));
411 group.writeEntry("ValuesRotation", ui.sbRotation->value());
412 group.writeEntry("ValuesOpacity", ui.sbOpacity->value() / 100.0);
413 group.writeEntry("ValuesPrefix", ui.lePrefix->text());
414 group.writeEntry("ValuesSuffix", ui.leSuffix->text());
415 group.writeEntry("ValuesFont", ui.kfrFont->font());
416 group.writeEntry("ValuesColor", ui.kcbColor->color());
417}

Callers

nothing calls this directly

Calls 5

fontMethod · 0.80
currentIndexMethod · 0.45
valueMethod · 0.45
textMethod · 0.45
colorMethod · 0.45

Tested by

no test coverage detected