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

Method methodChanged

src/frontend/dockwidgets/XYIntegrationCurveDock.cpp:288–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288void XYIntegrationCurveDock::methodChanged(int index) {
289 const auto method = (nsl_int_method_type)index;
290 m_integrationData.method = method;
291
292 // update absolute option
293 switch (method) {
294 case nsl_int_method_rectangle:
295 case nsl_int_method_trapezoid:
296 uiGeneralTab.cbAbsolute->setEnabled(true);
297 break;
298 case nsl_int_method_simpson:
299 case nsl_int_method_simpson_3_8:
300 uiGeneralTab.cbAbsolute->setChecked(false);
301 uiGeneralTab.cbAbsolute->setEnabled(false);
302 }
303
304 enableRecalculate();
305}
306
307void XYIntegrationCurveDock::absoluteChanged() {
308 bool absolute = uiGeneralTab.cbAbsolute->isChecked();

Callers 2

initGeneralTabMethod · 0.95

Calls 1

setEnabledMethod · 0.45

Tested by

no test coverage detected