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

Method applyFilterSettings

src/frontend/datasources/McapOptionsWidget.cpp:36–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void McapOptionsWidget::applyFilterSettings(McapFilter* filter) const {
37 Q_ASSERT(filter);
38
39 QLocale::Language lang;
40 lang = QLocale::Language::C;
41 filter->setNumberFormat(lang);
42
43 filter->setDateTimeFormat(ui.cbDateTimeFormat->currentText());
44 filter->setCreateIndexEnabled(ui.chbCreateIndex->isChecked());
45 filter->setNaNValueToZero(ui.chbConvertNaNToZero->isChecked());
46
47 // TODO: change this after implementation other row types
48 filter->setDataRowType(QJsonValue::Object);
49}
50
51void McapOptionsWidget::loadSettings() const {
52 KConfigGroup conf = Settings::group(QStringLiteral("ImportMcap"));

Callers

nothing calls this directly

Calls 6

currentTextMethod · 0.80
setNumberFormatMethod · 0.45
setDateTimeFormatMethod · 0.45
setCreateIndexEnabledMethod · 0.45
setNaNValueToZeroMethod · 0.45
setDataRowTypeMethod · 0.45

Tested by

no test coverage detected