40class QPROPERTYEDITOR_EXPORT
Property :
public QObject
53 Property(
const QString& name = QString(), QObject* propertyObject = 0, QObject* parent = 0);
59 virtual QVariant value(
int role = Qt::UserRole)
const;
65 virtual QString displayValue(
int role = Qt::UserRole)
const;
71 virtual void setValue(
const QVariant& value);
79 return m_propertyObject;
89 return m_propertyObject == 0;
104 return parent()->children().indexOf(
this);
133 virtual void setInfo(
const QString& info)
142 virtual void setEnabled(
bool enabled);
150 virtual QWidget* createEditor(QWidget* parent,
const QStyleOptionViewItem& option);
156 virtual QVariant editorData(QWidget* editor);
165 virtual bool setEditorData(QWidget* editor,
const QVariant& data);
172 Property* findPropertyObject(QObject* propertyObject);
180 void setValue(
double value);
186 void setValue(
int value);
188 void setValue(QColor value);
190 void setValue(
bool value);
192 void setValue(QFont value);
194 void setValue(QStringList value);
197 QObject* m_propertyObject;