refactoring qad widgets part 2

c++ cast, nullptr, forward declaration, agregate ui, connect to member functions, order and clear includes
This commit is contained in:
2022-12-12 10:18:34 +03:00
parent 728c132f2b
commit 4497123421
23 changed files with 837 additions and 500 deletions

View File

@@ -20,9 +20,9 @@
#ifndef MATH_VECTOR_EDIT_H
#define MATH_VECTOR_EDIT_H
#include <QWidget>
#include "qad_types.h"
#include "qad_widgets_export.h"
#include <QWidget>
#include <QVariant>
class MatrixEdit;
@@ -33,22 +33,21 @@ class QAD_WIDGETS_EXPORT MathVectorEdit: public QWidget {
Q_PROPERTY(QVariant value READ value WRITE setValue NOTIFY valueChanged)
Q_PROPERTY(bool readOnly READ isReadOnly WRITE setReadOnly)
public:
explicit MathVectorEdit(QWidget * parent = 0);
~MathVectorEdit();
explicit MathVectorEdit(QWidget * parent = nullptr);
~MathVectorEdit() override;
QVariant value() const;
bool isReadOnly() const;
private:
MatrixEdit * edit;
public slots:
void setValue(const QVariant & v);
void setReadOnly(bool yes);
signals:
void valueChanged();
private:
MatrixEdit * edit;
};