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

Method typeChanged

src/frontend/widgets/ValueWidget.cpp:138–146  ·  view source on GitHub ↗

SLOTs for changes triggered in ValueWidget ! called when the type of the values (none, x, y, (x,y) etc.) was changed. */

Source from the content-addressed store, hash-verified

136 called when the type of the values (none, x, y, (x,y) etc.) was changed.
137*/
138void ValueWidget::typeChanged(int index) {
139 this->updateWidgets();
140
141 CONDITIONAL_LOCK_RETURN;
142
143 auto valuesType = Value::Type(index);
144 for (auto* value : m_values)
145 value->setType(valuesType);
146}
147
148/*!
149 depending on the currently selected values column type (column mode) updates

Callers

nothing calls this directly

Calls 3

updateWidgetsMethod · 0.95
TypeEnum · 0.50
setTypeMethod · 0.45

Tested by

no test coverage detected