21 #ifndef VPOINTFPROPERTY_H
22 #define VPOINTFPROPERTY_H
24 #include <qcompilerdetection.h>
25 #include <QMetaObject>
33 #include "../vproperty.h"
47 virtual QVariant
data (
int column =
DPC_Name,
int role = Qt::DisplayRole)
const Q_DECL_OVERRIDE;
50 Qt::ItemFlags
flags(
int column =
DPC_Name)
const Q_DECL_OVERRIDE;
56 virtual void setPointF(
const QPointF &point);
62 virtual QString
type() const Q_DECL_OVERRIDE;
69 Q_REQUIRED_RESULT virtual
VProperty *
clone(
bool include_children = true,
70 VProperty *container =
nullptr) const Q_DECL_OVERRIDE;
73 virtual
void setValue(const QVariant &value) Q_DECL_OVERRIDE;
76 virtual QVariant
getValue() const Q_DECL_OVERRIDE;
virtual QVariant data(int column=DPC_Name, int role=Qt::DisplayRole) const Q_DECL_OVERRIDE
Get the data how it should be displayed.
Qt::ItemFlags flags(int column=DPC_Name) const Q_DECL_OVERRIDE
Returns item flags.
VPointFProperty(const QString &name)
virtual QVariant getValue() const Q_DECL_OVERRIDE
Returns the value of the property as a QVariant.
virtual QString type() const Q_DECL_OVERRIDE
Returns a string containing the type of the property.
virtual ~VPointFProperty() Q_DECL_OVERRIDE
virtual QPointF getPointF() const
Returns the QPointF.
virtual void setPointF(const QPointF &point)
Sets the QPointF.
virtual void setValue(const QVariant &value) Q_DECL_OVERRIDE
Sets the value of the property.
virtual Q_REQUIRED_RESULT VProperty * clone(bool include_children=true, VProperty *container=nullptr) const Q_DECL_OVERRIDE
Clones this property.