29 #ifndef COLOR_PROPERTY_H 30 #define COLOR_PROPERTY_H 49 const char *changed_slot = 0,
50 QObject* receiver = 0 );
52 virtual bool setValue(
const QVariant& new_value );
54 virtual bool paint( QPainter* painter,
55 const QStyleOptionViewItem& option )
const;
58 const QStyleOptionViewItem& option );
64 virtual bool setColor(
const QColor& color );
74 #endif // VECTOR_PROPERTY_H virtual QColor getColor() const
Ogre::ColourValue getOgreColor() const
virtual bool paint(QPainter *painter, const QStyleOptionViewItem &option) const
Hook to provide custom painting of the value data (right-hand column) in a subclass.
A single element of a property tree, with a name, value, description, and possibly children...
Ogre::ColourValue qtToOgre(const QColor &c)
ColorProperty(const QString &name=QString(), const QColor &default_value=Qt::black, const QString &description=QString(), Property *parent=0, const char *changed_slot=0, QObject *receiver=0)
virtual QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option)
Create an editor widget to edit the value of this property.
virtual bool setColor(const QColor &color)
virtual bool setValue(const QVariant &new_value)
Set the new value for this property. Returns true if the new value is different from the old value...