21 lines
492 B
C++
21 lines
492 B
C++
#ifndef QPropertyHandleImpl_Enum_h__
|
|
#define QPropertyHandleImpl_Enum_h__
|
|
|
|
#include "IPropertyHandleImpl.h"
|
|
|
|
class DIAGRAM_DESIGNER_PUBLIC QPropertyHandleImpl_Enum: public IPropertyHandleImpl {
|
|
public:
|
|
QPropertyHandleImpl_Enum(QPropertyHandle* inHandle);
|
|
|
|
protected:
|
|
QQuickItem* createValueEditor(QQuickItem* inParent) override;
|
|
Type type() override { return Type::Enum; };
|
|
|
|
private:
|
|
QHash<QString, int> mNameToValueMap;
|
|
QList<QString> mKeys;
|
|
};
|
|
|
|
|
|
#endif // QPropertyHandleImpl_Enum_h__
|