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

Method rangeFormatChanged

src/frontend/dockwidgets/CartesianPlotDock.cpp:1085–1097  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1083}
1084
1085void CartesianPlotDock::rangeFormatChanged(const QObject* sender, const Dimension dim, int index) {
1086 const int rangeIndex{sender->property("row").toInt()};
1087 DEBUG(Q_FUNC_INFO << ", x range " << rangeIndex + 1 << " format = " << index)
1088
1089 CONDITIONAL_LOCK_RETURN;
1090
1091 const auto format{static_cast<RangeT::Format>(index)};
1092 for (auto* plot : m_plotList) {
1093 DEBUG(Q_FUNC_INFO << ", set format of range " << rangeIndex + 1 << " to " << static_cast<int>(format))
1094 plot->setRangeFormat(dim, rangeIndex, format);
1095 }
1096 updateRangeList(dim);
1097}
1098
1099void CartesianPlotDock::addXRange() {
1100 if (!m_plot)

Callers 1

updateRangeListMethod · 0.95

Calls 2

setRangeFormatMethod · 0.80
propertyMethod · 0.45

Tested by

no test coverage detected