52 #ifndef VFORMULAPROPERTY_H
53 #define VFORMULAPROPERTY_H
55 #include "../vpropertyexplorer/vproperty.h"
66 virtual QVariant
data (
int column =
DPC_Name,
int role = Qt::DisplayRole)
const Q_DECL_OVERRIDE;
69 virtual Qt::ItemFlags
flags(
int column =
DPC_Name)
const Q_DECL_OVERRIDE;
76 virtual QWidget*
createEditor(QWidget* parent,
const QStyleOptionViewItem& options,
77 const QAbstractItemDelegate* delegate) Q_DECL_OVERRIDE;
83 virtual QVariant
getEditorData(
const QWidget* editor)
const Q_DECL_OVERRIDE;
86 virtual QString
type()
const Q_DECL_OVERRIDE;
93 Q_REQUIRED_RESULT
virtual VProperty*
clone(
bool include_children =
true,
94 VProperty* container =
nullptr)
const Q_DECL_OVERRIDE;
97 virtual void setValue(
const QVariant& value) Q_DECL_OVERRIDE;
100 virtual QVariant
getValue()
const Q_DECL_OVERRIDE;
109 virtual void childValueChanged(
const QVariant &value,
int typeForParent) Q_DECL_OVERRIDE;
VProperty(const QString &name, QVariant::Type type=QVariant::String)
Standard constructor, takes a name and a parent property as argument.