MCPcopy Create free account
hub / github.com/KDE/labplot / ~AddSubtractValueDialog

Method ~AddSubtractValueDialog

src/frontend/spreadsheet/AddSubtractValueDialog.cpp:70–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70AddSubtractValueDialog::~AddSubtractValueDialog() {
71 delete m_project;
72
73 KConfigGroup conf = Settings::group(QStringLiteral("AddSubtractValueDialog"));
74 conf.writeEntry(QStringLiteral("Type"), ui.cbType->currentData().toInt());
75 conf.writeEntry(QStringLiteral("Preview"), ui.chbPreview->isChecked());
76
77 // baseline subtraction specific parameters
78 const auto numberLocale = QLocale();
79 conf.writeEntry(QStringLiteral("BaselineParameter1"), ui.sbBaselineParameter1->value());
80 conf.writeEntry(QStringLiteral("BaselineParameter2"), numberLocale.toDouble(ui.leBaselineParameter2->text()));
81 conf.writeEntry(QStringLiteral("BaselineParameter3"), ui.sbBaselineParameter3->value());
82
83 KWindowConfig::saveWindowSize(windowHandle(), conf);
84}
85
86void AddSubtractValueDialog::init() {
87 // initilize the line edits with the values based on the values in the data container

Callers

nothing calls this directly

Calls 3

groupFunction · 0.85
valueMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected