src/widgets/vec3editor.cpp

changeset 86
4bec0525ef1b
parent 81
62373840e33a
child 206
654661eab7f3
--- a/src/widgets/vec3editor.cpp	Wed Mar 18 17:11:23 2020 +0200
+++ b/src/widgets/vec3editor.cpp	Thu Mar 19 21:06:06 2020 +0200
@@ -19,6 +19,13 @@
 	{
 		connect(this->ui->multiply, &QPushButton::clicked, this, &Vec3Editor::multiplyPressed);
 	}
+	for (QDoubleSpinBox* spinbox : this->spinboxes())
+	{
+		connect(spinbox, qOverload<double>(&QDoubleSpinBox::valueChanged), [&](double)
+		{
+			Q_EMIT this->valueChanged(this->value());
+		});
+	}
 }
 
 Vec3Editor::~Vec3Editor()

mercurial