Tue, 28 Jun 2022 11:51:17 +0300
- Add CMake build type to about page and window title
- Use locale-dependant short date format in window title and long format in about page
- Move version definition into project() call
- Renamed the c++ macros to match CMake variable names
#pragma once #include <QWidget> #include <glm/glm.hpp> 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]; class Ui_MatrixEditor *ui; }; constexpr int MatrixEditor::matrixSize() const { return 4; }