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

Method minorTicksAutoNumberChanged

src/frontend/dockwidgets/AxisDock.cpp:1263–1274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1261}
1262
1263void AxisDock::minorTicksAutoNumberChanged(int state) {
1264 bool automatic = (state == Qt::CheckState::Checked ? true : false);
1265 ui.sbMinorTicksNumber->setEnabled(!automatic);
1266
1267 CONDITIONAL_LOCK_RETURN;
1268
1269 for (auto* axis : m_axesList)
1270 axis->setMinorTicksAutoNumber(automatic);
1271
1272 if (automatic)
1273 ui.sbMinorTicksNumber->setValue(m_axis->minorTicksNumber()); // set new value
1274}
1275
1276void AxisDock::minorTicksNumberChanged(int value) {
1277 CONDITIONAL_LOCK_RETURN;

Callers

nothing calls this directly

Calls 3

setEnabledMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected