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

Method saveSettings

src/frontend/datasources/JsonOptionsWidget.cpp:89–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void JsonOptionsWidget::saveSettings() {
90 KConfigGroup conf = Settings::group(QStringLiteral("ImportJson"));
91
92 conf.writeEntry("DecimalSeparator", ui.cbDecimalSeparator->currentIndex());
93 conf.writeEntry("DateTimeFormat", ui.cbDateTimeFormat->currentText());
94 conf.writeEntry("CreateIndex", ui.chbCreateIndex->isChecked());
95 conf.writeEntry("ConvertNaNToZero", ui.chbConvertNaNToZero->isChecked());
96 conf.writeEntry("ParseRowsName", ui.chbImportObjectNames->isChecked());
97}
98
99void JsonOptionsWidget::loadDocument(const QString& filename) {
100 PERFTRACE(QStringLiteral("JsonOptionsWidget::loadDocument"));

Callers

nothing calls this directly

Calls 3

groupFunction · 0.85
currentTextMethod · 0.80
currentIndexMethod · 0.45

Tested by

no test coverage detected