| 424 | } |
| 425 | |
| 426 | void CartesianPlotLegendDock::customPositionYChanged(double value) { |
| 427 | CONDITIONAL_RETURN_NO_LOCK; |
| 428 | |
| 429 | for (auto* legend : m_legendList) { |
| 430 | auto position = legend->position(); |
| 431 | if (position.verticalPosition == WorksheetElement::VerticalPosition::Relative) |
| 432 | position.point.setY(value / 100.); |
| 433 | else |
| 434 | position.point.setY(Worksheet::convertToSceneUnits(value, m_worksheetUnit)); |
| 435 | legend->setPosition(position); |
| 436 | } |
| 437 | } |
| 438 | void CartesianPlotLegendDock::horizontalAlignmentChanged(int index) { |
| 439 | CONDITIONAL_LOCK_RETURN; |
| 440 |
nothing calls this directly
no test coverage detected