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

Method verticalPaddingChanged

src/frontend/dockwidgets/CartesianPlotDock.cpp:1360–1376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1358}
1359
1360void CartesianPlotDock::verticalPaddingChanged(double value) {
1361 CONDITIONAL_RETURN_NO_LOCK;
1362
1363 const double padding = Worksheet::convertToSceneUnits(value, m_worksheetUnit);
1364 for (auto* plot : m_plotList) {
1365 const bool sym = m_plot->symmetricPadding();
1366 if (sym)
1367 plot->beginMacro(i18n("%1: set vertical padding", plot->name()));
1368
1369 plot->setVerticalPadding(padding);
1370
1371 if (sym) {
1372 plot->setBottomPadding(padding);
1373 plot->endMacro();
1374 }
1375 }
1376}
1377
1378void CartesianPlotDock::bottomPaddingChanged(double value) {
1379 CONDITIONAL_RETURN_NO_LOCK;

Callers

nothing calls this directly

Calls 5

beginMacroMethod · 0.80
setVerticalPaddingMethod · 0.80
setBottomPaddingMethod · 0.80
endMacroMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected