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

Method borderTypeChanged

src/frontend/dockwidgets/CartesianPlotDock.cpp:1617–1634  ·  view source on GitHub ↗

"Plot area"-tab

Source from the content-addressed store, hash-verified

1615
1616// "Plot area"-tab
1617void CartesianPlotDock::borderTypeChanged() {
1618 CONDITIONAL_LOCK_RETURN;
1619
1620 auto type = m_plot->plotArea()->borderType();
1621 auto* tb = static_cast<QToolButton*>(QObject::sender());
1622 bool checked = tb->isChecked();
1623 if (tb == ui.tbBorderTypeLeft)
1624 type.setFlag(PlotArea::BorderTypeFlags::BorderLeft, checked);
1625 else if (tb == ui.tbBorderTypeTop)
1626 type.setFlag(PlotArea::BorderTypeFlags::BorderTop, checked);
1627 else if (tb == ui.tbBorderTypeRight)
1628 type.setFlag(PlotArea::BorderTypeFlags::BorderRight, checked);
1629 else if (tb == ui.tbBorderTypeBottom)
1630 type.setFlag(PlotArea::BorderTypeFlags::BorderBottom, checked);
1631
1632 for (auto* plot : m_plotList)
1633 plot->plotArea()->setBorderType(type);
1634}
1635
1636void CartesianPlotDock::borderCornerRadiusChanged(double value) {
1637 CONDITIONAL_RETURN_NO_LOCK;

Callers

nothing calls this directly

Calls 2

plotAreaMethod · 0.80
setBorderTypeMethod · 0.80

Tested by

no test coverage detected