MCPcopy Create free account
hub / github.com/KDE/labplot / sizeChanged

Method sizeChanged

src/frontend/dockwidgets/WorksheetDock.cpp:386–393  ·  view source on GitHub ↗

! * \brief called when the width or the height of the page was changed manually */

Source from the content-addressed store, hash-verified

384 * \brief called when the width or the height of the page was changed manually
385 */
386void 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
395void WorksheetDock::orientationChanged(int /*index*/) {
396 this->pageChanged(ui.cbPage->currentIndex());

Callers

nothing calls this directly

Calls 3

QRectFClass · 0.85
setPageRectMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected