21 #ifndef VCOLORPROPERTY_H
22 #define VCOLORPROPERTY_H
24 #include <qcompilerdetection.h>
26 #include <QMetaObject>
29 #include <QStyleOptionViewItem>
34 #include "../vproperty.h"
46 virtual QVariant
data (
int column =
DPC_Name,
int role = Qt::DisplayRole)
const Q_DECL_OVERRIDE;
53 virtual QWidget *
createEditor(QWidget *parent,
const QStyleOptionViewItem &options,
54 const QAbstractItemDelegate *delegate) Q_DECL_OVERRIDE;
60 virtual QVariant
getEditorData(
const QWidget *editor)
const Q_DECL_OVERRIDE;
63 virtual QString
type()
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.
virtual QString type() const Q_DECL_OVERRIDE
Returns a string containing the type of the property.
virtual VProperty * clone(bool include_children=true, VProperty *container=NULL) const Q_DECL_OVERRIDE
Clones this 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.
virtual bool setEditorData(QWidget *editor) Q_DECL_OVERRIDE
Sets the property's data to the editor (returns false, if the standard delegate should do that)
virtual QVariant getEditorData(const QWidget *editor) const Q_DECL_OVERRIDE
Gets the data from the widget.
VColorProperty(const QString &name)