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

Method saveConfigAsTemplate

src/frontend/dockwidgets/BarPlotDock.cpp:516–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514}
515
516void BarPlotDock::saveConfigAsTemplate(KConfig& config) {
517 KConfigGroup group = config.group(QStringLiteral("BarPlot"));
518
519 // general
520 group.writeEntry(QStringLiteral("Type"), ui.cbType->currentIndex());
521 group.writeEntry(QStringLiteral("Orientation"), ui.cbOrientation->currentIndex());
522
523 // box
524 group.writeEntry(QStringLiteral("WidthFactor"), ui.sbWidthFactor->value() / 100.0);
525 backgroundWidget->saveConfig(group);
526 lineWidget->saveConfig(group);
527
528 // values
529 valueWidget->saveConfig(group);
530
531 config.sync();
532}

Callers

nothing calls this directly

Calls 4

groupMethod · 0.45
currentIndexMethod · 0.45
valueMethod · 0.45
saveConfigMethod · 0.45

Tested by

no test coverage detected