DiagramDesigner/PropertyEditor/source/include/PropertyHandleImpl/IPropertyHandleImpl.h

34 lines
653 B
C
Raw Normal View History

2026-01-27 16:36:59 +08:00
#ifndef IPropertyHandleImpl_h__
#define IPropertyHandleImpl_h__
#include <QQmlContext>
#include <QQuickItem>
#include <QVariant>
#include <QObject>
#include "export.hpp"
class QPropertyHandle;
class IPropertyHandleImpl{
friend class QPropertyHandle;
public:
enum Type {
Null,
RawType,
Associative,
Sequential,
Enum,
Object,
};
protected:
IPropertyHandleImpl(QPropertyHandle* inHandle);
virtual QQuickItem* createNameEditor(QQuickItem* inParent);
virtual QQuickItem* createValueEditor(QQuickItem* inParent)= 0;
virtual Type type() { return Type::Null; };
protected:
QPropertyHandle* mHandle;
};
#endif // IPropertyHandleImpl_h__