| 1083 | } |
| 1084 | |
| 1085 | void 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 | |
| 1099 | void CartesianPlotDock::addXRange() { |
| 1100 | if (!m_plot) |
no test coverage detected