src/widgets/vec3editor.cpp

changeset 86
4bec0525ef1b
parent 81
62373840e33a
child 206
654661eab7f3
equal deleted inserted replaced
85:40e2940605a3 86:4bec0525ef1b
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 {

mercurial