git-svn-id: svn://db.shs.com.ru/libs@586 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
40
test/qad/widgets/mathmatrixedit.h
Normal file
40
test/qad/widgets/mathmatrixedit.h
Normal file
@@ -0,0 +1,40 @@
|
||||
#ifndef MATH_MATRIX_EDIT_H
|
||||
#define MATH_MATRIX_EDIT_H
|
||||
|
||||
#include <QWidget>
|
||||
#include "qad_types.h"
|
||||
|
||||
class MatrixEdit;
|
||||
|
||||
class MathMatrixEdit: public QWidget {
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QVariant value READ value WRITE setValue NOTIFY valueChanged)
|
||||
Q_PROPERTY(bool readOnly READ isReadOnly WRITE setReadOnly)
|
||||
public:
|
||||
explicit MathMatrixEdit(QWidget * parent = 0);
|
||||
~MathMatrixEdit();
|
||||
|
||||
QVariant value() const;
|
||||
bool isReadOnly() const;
|
||||
|
||||
private:
|
||||
MatrixEdit * edit;
|
||||
|
||||
public slots:
|
||||
void setValue(const QVariant & v);
|
||||
void setReadOnly(bool yes);
|
||||
|
||||
signals:
|
||||
void valueChanged();
|
||||
|
||||
};
|
||||
|
||||
|
||||
class __MathMatrixEditRegistrator__ {
|
||||
public:
|
||||
__MathMatrixEditRegistrator__();
|
||||
};
|
||||
|
||||
static __MathMatrixEditRegistrator__ __mathmatrixeditregistrator__;
|
||||
|
||||
#endif // MATH_MATRIX_EDIT_H
|
||||
Reference in New Issue
Block a user