| 514 | } |
| 515 | |
| 516 | void 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 | } |
nothing calls this directly
no test coverage detected