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

Method borderShapeChanged

src/frontend/widgets/LabelWidget.cpp:1123–1132  ·  view source on GitHub ↗

border

Source from the content-addressed store, hash-verified

1121
1122// border
1123void LabelWidget::borderShapeChanged(int) {
1124 const auto shape = static_cast<TextLabel::BorderShape>(ui.cbBorderShape->currentData().toInt());
1125 bool b = (shape != TextLabel::BorderShape::NoBorder);
1126 borderLineWidget->setVisible(b);
1127
1128 CONDITIONAL_LOCK_RETURN;
1129
1130 for (auto* label : m_labelsList)
1131 label->setBorderShape(shape);
1132}
1133
1134/*!
1135 * \brief LabelWidget::bindingChanged

Callers

nothing calls this directly

Calls 2

setBorderShapeMethod · 0.80
setVisibleMethod · 0.45

Tested by

no test coverage detected