mirror of
https://github.com/IndeemaSoftware/QSimpleScada.git
synced 2026-10-19 06:31:23 +08:00
43 lines
832 B
C++
43 lines
832 B
C++
#ifndef QSCADAOBJECTQML_H
|
|
#define QSCADAOBJECTQML_H
|
|
|
|
#include "qscadaobject.h"
|
|
|
|
#include <QMultiMap>
|
|
|
|
class QQuickItem;
|
|
|
|
class QScadaObjectQML : public QScadaObject
|
|
{
|
|
public:
|
|
|
|
static const char *funcUpdate;
|
|
static const char *tagMetaData;
|
|
|
|
explicit QScadaObjectQML(QScadaObjectInfo *,QWidget *parent = nullptr);
|
|
|
|
void setProperty(QString, QVariant);
|
|
void setProperty(char*, QVariant);
|
|
void updateUIProperties();
|
|
void updateValue(QVariant);
|
|
|
|
void update();
|
|
|
|
QQuickItem *QMLObject() const;
|
|
void setQMLObject(QQuickItem *qMLObject);
|
|
|
|
QMultiMap<QString, QVariant> QMLProperties() const;
|
|
|
|
private:
|
|
void updateQMLGeometry();
|
|
|
|
protected slots:
|
|
void initFromQML(QScadaObjectInfo *info);
|
|
void resize(int x, int y);
|
|
|
|
private:
|
|
QQuickItem *mQMLObject;
|
|
};
|
|
|
|
#endif // QSCADAOBJECTQML_H
|