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

Method updateScale

src/frontend/dockwidgets/AxisDock.cpp:1581–1589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1579}
1580
1581void AxisDock::updateScale() {
1582 if (m_axis->rangeScale()) {
1583 ui.cbScale->setEnabled(false);
1584 ui.cbScale->setToolTip(i18n("Scale is in sync with the plot scale"));
1585 } else {
1586 ui.cbScale->setEnabled(true);
1587 ui.cbScale->setToolTip(i18n("Scale is async with the plot"));
1588 }
1589}
1590
1591void AxisDock::axisRangeScaleChanged(bool rangeScale) {
1592 updateScale();

Callers

nothing calls this directly

Calls 3

rangeScaleMethod · 0.80
setToolTipMethod · 0.80
setEnabledMethod · 0.45

Tested by

no test coverage detected