30#include <qstyleoption.h>
57 virtual QVariant
value(
int role = Qt::UserRole)
const;
74 bool isRoot() {
return m_propertyObject == 0;}
86 int row() {
return parent()->children().indexOf(
this);}
106 virtual QWidget*
createEditor(QWidget* parent,
const QStyleOptionViewItem& option);
148 QObject* m_propertyObject;
int row()
Definition Property.h:86
virtual void setValue(const QVariant &value)
QObject * propertyObject()
Definition Property.h:77
virtual QVariant value(int role=Qt::UserRole) const
QString editorHints()
Definition Property.h:92
virtual QVariant editorData(QWidget *editor)
virtual void setEditorHints(const QString &hints)
Definition Property.h:98
virtual QVariant value(int role=Qt::UserRole) const
Definition Property.cpp:50
Property * findPropertyObject(QObject *propertyObject)
virtual QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option)
virtual bool setEditorData(QWidget *editor, const QVariant &data)
bool isRoot()
Definition Property.h:74
Property(const QString &name=QString(), QObject *propertyObject=0, QObject *parent=0)
virtual void setValue(const QVariant &value)
Definition Property.cpp:102
void setValue(double value)