| 411 | } |
| 412 | |
| 413 | void CartesianPlotLegendDock::customPositionXChanged(double value) { |
| 414 | CONDITIONAL_RETURN_NO_LOCK; |
| 415 | |
| 416 | for (auto* legend : m_legendList) { |
| 417 | auto position = legend->position(); |
| 418 | if (position.horizontalPosition == WorksheetElement::HorizontalPosition::Relative) |
| 419 | position.point.setX(value / 100.); |
| 420 | else |
| 421 | position.point.setX(Worksheet::convertToSceneUnits(value, m_worksheetUnit)); |
| 422 | legend->setPosition(position); |
| 423 | } |
| 424 | } |
| 425 | |
| 426 | void CartesianPlotLegendDock::customPositionYChanged(double value) { |
| 427 | CONDITIONAL_RETURN_NO_LOCK; |
nothing calls this directly
no test coverage detected