21 #ifndef VEMPTYPROPERTY_H
22 #define VEMPTYPROPERTY_H
24 #include <qcompilerdetection.h>
25 #include <QMetaObject>
28 #include <QStyleOptionViewItem>
33 #include "../vproperty.h"
37 class VPropertyPrivate;
54 virtual QVariant
data (
int column =
DPC_Name,
int role = Qt::DisplayRole)
const Q_DECL_OVERRIDE;
61 virtual QWidget*
createEditor(QWidget* parent,
const QStyleOptionViewItem& options,
62 const QAbstractItemDelegate* delegate) Q_DECL_OVERRIDE;
65 virtual QVariant
getEditorData(
const QWidget* editor)
const Q_DECL_OVERRIDE;
68 virtual Qt::ItemFlags
flags(
int column =
DPC_Name)
const Q_DECL_OVERRIDE;
71 virtual QString
type()
const Q_DECL_OVERRIDE;
78 Q_REQUIRED_RESULT
virtual VProperty*
clone(
bool include_children =
true,
79 VProperty* container =
nullptr)
const Q_DECL_OVERRIDE;
virtual QVariant getEditorData(const QWidget *editor) const Q_DECL_OVERRIDE
Gets the data from the widget.
VEmptyProperty(const QString &name)
Standard constructor, takes a name and a parent property as argument.
virtual Qt::ItemFlags flags(int column=DPC_Name) const Q_DECL_OVERRIDE
Returns item flags.
virtual Q_REQUIRED_RESULT VProperty * clone(bool include_children=true, VProperty *container=nullptr) const Q_DECL_OVERRIDE
Clones this property.
virtual QVariant data(int column=DPC_Name, int role=Qt::DisplayRole) const Q_DECL_OVERRIDE
Get the data how it should be displayed.
virtual ~VEmptyProperty() Q_DECL_OVERRIDE
Destructor.
virtual QString type() const Q_DECL_OVERRIDE
Returns a string containing the type of the property.
virtual QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &options, const QAbstractItemDelegate *delegate) Q_DECL_OVERRIDE
Returns an editor widget, or NULL if it doesn't supply one.