29 #ifndef FLOAT_PROPERTY_H 30 #define FLOAT_PROPERTY_H 46 const char *changed_slot = 0,
47 QObject* receiver = 0 );
56 virtual bool setValue(
const QVariant& new_value );
82 #endif // FLOAT_PROPERTY_H
A single element of a property tree, with a name, value, description, and possibly children...
virtual float getFloat() const
bool multiply(float factor)
Multiply the property value by the given factor.
Property specialized to enforce floating point max/min.
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...
bool add(float delta)
Add the given delta to the property value.
bool setFloat(float new_value)
Float-typed "SLOT" version of setValue().
virtual QVariant getValue() const
Return the value of this Property as a QVariant. If the value has never been set, an invalid QVariant...
FloatProperty(const QString &name=QString(), float default_value=0, const QString &description=QString(), Property *parent=0, const char *changed_slot=0, QObject *receiver=0)