! * \brief called when the width or the height of the page was changed manually */
| 384 | * \brief called when the width or the height of the page was changed manually |
| 385 | */ |
| 386 | void WorksheetDock::sizeChanged() { |
| 387 | CONDITIONAL_RETURN_NO_LOCK; |
| 388 | |
| 389 | const double w = Worksheet::convertToSceneUnits(ui.sbWidth->value(), m_worksheetUnit); |
| 390 | const double h = Worksheet::convertToSceneUnits(ui.sbHeight->value(), m_worksheetUnit); |
| 391 | for (auto* worksheet : m_worksheetList) |
| 392 | worksheet->setPageRect(QRectF(0, 0, w, h)); |
| 393 | } |
| 394 | |
| 395 | void WorksheetDock::orientationChanged(int /*index*/) { |
| 396 | this->pageChanged(ui.cbPage->currentIndex()); |
nothing calls this directly
no test coverage detected