Logo Search packages:      
Sourcecode: qsapecng version File versions  Download package

Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Attributes

QtDoublePropertyManager Class Reference

The QtDoublePropertyManager provides and manages double properties. More...

Inheritance diagram for QtDoublePropertyManager:
Inheritance graph
Collaboration diagram for QtDoublePropertyManager:
Collaboration graph

List of all members.

Public Slots

void setDecimals (QtProperty *property, int prec)
void setMaximum (QtProperty *property, double maxVal)
void setMinimum (QtProperty *property, double minVal)
void setRange (QtProperty *property, double minVal, double maxVal)
void setSingleStep (QtProperty *property, double step)
void setValue (QtProperty *property, double val)


void decimalsChanged (QtProperty *property, int prec)
void propertyChanged (QtProperty *property)
void propertyDestroyed (QtProperty *property)
void propertyInserted (QtProperty *property, QtProperty *parent, QtProperty *after)
void propertyRemoved (QtProperty *property, QtProperty *parent)
void rangeChanged (QtProperty *property, double minVal, double maxVal)
void singleStepChanged (QtProperty *property, double step)
void valueChanged (QtProperty *property, double val)

Public Member Functions

QtPropertyaddProperty (const QString &name=QString())
void clear () const
int decimals (const QtProperty *property) const
double maximum (const QtProperty *property) const
double minimum (const QtProperty *property) const
QSet< QtProperty * > properties () const
 QtDoublePropertyManager (QObject *parent=0)
double singleStep (const QtProperty *property) const
double value (const QtProperty *property) const
 ~QtDoublePropertyManager ()

Protected Member Functions

virtual QtPropertycreateProperty ()
virtual bool hasValue (const QtProperty *property) const
virtual void initializeProperty (QtProperty *property)
virtual void uninitializeProperty (QtProperty *property)
virtual QIcon valueIcon (const QtProperty *property) const
QString valueText (const QtProperty *property) const

Private Attributes


Detailed Description

The QtDoublePropertyManager provides and manages double properties.

A double property has a current value, and a range specifying the valid values. The range is defined by a minimum and a maximum value.

The property's value and range can be retrieved using the value(), minimum() and maximum() functions, and can be set using the setValue(), setMinimum() and setMaximum() slots. Alternatively, the range can be defined in one go using the setRange() slot.

In addition, QtDoublePropertyManager provides the valueChanged() signal which is emitted whenever a property created by this manager changes, and the rangeChanged() signal which is emitted whenever such a property changes its range of valid values.

See also:
QtAbstractPropertyManager, QtDoubleSpinBoxFactory

Definition at line 178 of file qtpropertymanager.h.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index