diff -r 1a4342d80de7 -r 654661eab7f3 src/widgets/vec3editor.cpp --- a/src/widgets/vec3editor.cpp Wed Jun 08 20:41:21 2022 +0300 +++ b/src/widgets/vec3editor.cpp Wed Jun 08 22:29:44 2022 +0300 @@ -34,7 +34,7 @@ glm::vec3 Vec3Editor::value() const { - auto get = [](DoubleSpinBox* spinbox){ return toFloat(spinbox->value()); }; + auto get = [](DoubleSpinBox* spinbox){ return float_cast(spinbox->value()); }; return {get(this->ui->x), get(this->ui->y), get(this->ui->z)}; } @@ -43,7 +43,7 @@ auto set = [](DoubleSpinBox* spinbox, float value) { QSignalBlocker blocker{spinbox}; - spinbox->setValue(toQreal(value)); + spinbox->setValue(qreal_cast(value)); }; set(this->ui->x, value.x); set(this->ui->y, value.y);