16 this->ui->multiply->setVisible(false); |
16 this->ui->multiply->setVisible(false); |
17 } |
17 } |
18 else |
18 else |
19 { |
19 { |
20 connect(this->ui->multiply, &QPushButton::clicked, this, &Vec3Editor::multiplyPressed); |
20 connect(this->ui->multiply, &QPushButton::clicked, this, &Vec3Editor::multiplyPressed); |
|
21 } |
|
22 for (QDoubleSpinBox* spinbox : this->spinboxes()) |
|
23 { |
|
24 connect(spinbox, qOverload<double>(&QDoubleSpinBox::valueChanged), [&](double) |
|
25 { |
|
26 Q_EMIT this->valueChanged(this->value()); |
|
27 }); |
21 } |
28 } |
22 } |
29 } |
23 |
30 |
24 Vec3Editor::~Vec3Editor() |
31 Vec3Editor::~Vec3Editor() |
25 { |
32 { |