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

Method LineWidget

src/frontend/widgets/LineWidget.cpp:23–34  ·  view source on GitHub ↗

! \class LineWidget \brief Widget for editing the properties of a Line object, mostly used in an appropriate dock widget. \ingroup frontend */

Source from the content-addressed store, hash-verified

21 \ingroup frontend
22 */
23LineWidget::LineWidget(QWidget* parent)
24 : QWidget(parent) {
25 ui.setupUi(this);
26
27 ui.sbWidth->setMinimum(0);
28
29 connect(ui.cbType, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &LineWidget::typeChanged);
30 connect(ui.cbStyle, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &LineWidget::styleChanged);
31 connect(ui.kcbColor, &KColorButton::changed, this, &LineWidget::colorChangedSlot);
32 connect(ui.sbWidth, QOverload<double>::of(&NumberSpinBox::valueChanged), this, &LineWidget::widthChanged);
33 connect(ui.sbOpacity, QOverload<int>::of(&QSpinBox::valueChanged), this, &LineWidget::opacityChanged);
34}
35
36void LineWidget::setLines(const QList<Line*>& lines) {
37 CONDITIONAL_LOCK_RETURN;

Callers

nothing calls this directly

Calls 1

setMinimumMethod · 0.80

Tested by

no test coverage detected