29 #ifndef INT_PROPERTY_H 30 #define INT_PROPERTY_H 57 const char *changed_slot = 0,
58 QObject* receiver = 0 );
67 virtual bool setValue(
const QVariant& new_value );
85 const QStyleOptionViewItem& option );
100 #endif // INT_PROPERTY_H 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...
IntProperty(const QString &name=QString(), int default_value=0, const QString &description=QString(), Property *parent=0, const char *changed_slot=0, QObject *receiver=0)
Constructor.
virtual int getInt() const
Return the internal property value as an integer.
A single element of a property tree, with a name, value, description, and possibly children...
void setInt(int new_value)
Set the value of this property to the given integer.
Property specialized to provide max/min enforcement for integers.
virtual QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option)
Overridden to create a QSpinBox with the min and max set and with a signal/slot connection to setInt(...
virtual QVariant getValue() const
Return the value of this Property as a QVariant. If the value has never been set, an invalid QVariant...