Wed, 08 Jun 2022 22:29:44 +0300
More refactor, merged main.h, basics.h and utility.h into one header file basics.h and removed plenty of unused code
#pragma once #include <QWidget> #include "basics.h" namespace Ui { class MatrixEditor; } class MatrixEditor : public QWidget { Q_OBJECT public: explicit MatrixEditor(QWidget *parent = nullptr); explicit MatrixEditor(const glm::mat4 value, QWidget* parent = nullptr); ~MatrixEditor(); glm::mat4 value() const; void setValue(const glm::mat4& value); Q_SIGNALS: void valueChanged(const glm::mat4& value); private: constexpr int matrixSize() const; Q_SLOT void multiplyButtonPressed(); class QDoubleSpinBox* spinboxes[4][3]; Ui::MatrixEditor *ui; }; constexpr int MatrixEditor::matrixSize() const { return 4; }