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

Method yStartChanged

src/frontend/dockwidgets/MatrixDock.cpp:125–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125void MatrixDock::yStartChanged(const QString& text) {
126 CONDITIONAL_LOCK_RETURN;
127
128 QString str = text.trimmed();
129 if (str.isEmpty())
130 return;
131 bool ok;
132 const double value{QLocale().toDouble(str, &ok)};
133 if (ok) {
134 for (auto* matrix : m_matrixList)
135 matrix->setYStart(value);
136 }
137}
138
139void MatrixDock::yEndChanged(const QString& text) {
140 CONDITIONAL_LOCK_RETURN;

Callers

nothing calls this directly

Calls 2

setYStartMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected