"Plot area"-tab
| 1615 | |
| 1616 | // "Plot area"-tab |
| 1617 | void 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 | |
| 1636 | void CartesianPlotDock::borderCornerRadiusChanged(double value) { |
| 1637 | CONDITIONAL_RETURN_NO_LOCK; |
nothing calls this directly
no test coverage detected