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

Method majorTicksAutoNumberChanged

src/frontend/dockwidgets/AxisDock.cpp:1058–1069  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1056}
1057
1058void AxisDock::majorTicksAutoNumberChanged(int state) {
1059 bool automatic = (state == Qt::CheckState::Checked ? true : false);
1060 ui.sbMajorTicksNumber->setEnabled(!automatic);
1061
1062 CONDITIONAL_LOCK_RETURN;
1063
1064 for (auto* axis : m_axesList)
1065 axis->setMajorTicksAutoNumber(automatic);
1066
1067 if (automatic)
1068 ui.sbMajorTicksNumber->setValue(m_axis->majorTicksNumber()); // set new value
1069}
1070
1071void AxisDock::majorTicksNumberChanged(int value) {
1072 DEBUG(Q_FUNC_INFO << ", number = " << value)

Callers

nothing calls this directly

Calls 3

setEnabledMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected