| 955 | } |
| 956 | |
| 957 | void Worksheet::cartesianPlotMouseHoverZoomSelectionMode(QPointF logicPos) { |
| 958 | auto senderPlot = static_cast<CartesianPlot*>(QObject::sender()); |
| 959 | auto actionMode = cartesianPlotActionMode(); |
| 960 | auto mouseMode = senderPlot->mouseMode(); |
| 961 | if (actionMode == CartesianPlotActionMode::ApplyActionToAll |
| 962 | || (actionMode == CartesianPlotActionMode::ApplyActionToAllX && mouseMode != CartesianPlot::MouseMode::ZoomYSelection) |
| 963 | || (actionMode == CartesianPlotActionMode::ApplyActionToAllY && mouseMode != CartesianPlot::MouseMode::ZoomXSelection)) { |
| 964 | const auto& plots = children<CartesianPlot>(AbstractAspect::ChildIndexFlag::Recursive | AbstractAspect::ChildIndexFlag::IncludeHidden); |
| 965 | for (auto* plot : plots) |
| 966 | plot->mouseHoverZoomSelectionMode(logicPos, -1); |
| 967 | } else { |
| 968 | if (m_view->selectedElement()->parent(AspectType::CartesianPlot) == senderPlot) |
| 969 | senderPlot->mouseHoverZoomSelectionMode(logicPos, CartesianPlot::cSystemIndex(m_view->selectedElement())); |
| 970 | else |
| 971 | senderPlot->mouseHoverZoomSelectionMode(logicPos, -1); |
| 972 | } |
| 973 | } |
| 974 | |
| 975 | void Worksheet::cartesianPlotMouseHoverOutsideDataRect() { |
| 976 | auto senderPlot = static_cast<CartesianPlot*>(QObject::sender()); |
nothing calls this directly
no test coverage detected