! \class LineWidget \brief Widget for editing the properties of a Line object, mostly used in an appropriate dock widget. \ingroup frontend */
| 21 | \ingroup frontend |
| 22 | */ |
| 23 | LineWidget::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 | |
| 36 | void LineWidget::setLines(const QList<Line*>& lines) { |
| 37 | CONDITIONAL_LOCK_RETURN; |
nothing calls this directly
no test coverage detected