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

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

QtIntPropertyManager Class Reference

The QtIntPropertyManager provides and manages int properties. More...

Inheritance diagram for QtIntPropertyManager:
Inheritance graph
[legend]
Collaboration diagram for QtIntPropertyManager:
Collaboration graph
[legend]

List of all members.

Public Slots

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

Signals

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, int minVal, int maxVal)
void singleStepChanged (QtProperty *property, int step)
void valueChanged (QtProperty *property, int val)

Public Member Functions

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

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

QtIntPropertyManagerPrivated_ptr

Detailed Description

The QtIntPropertyManager provides and manages int properties.

An int 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, QtIntPropertyManager 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, QtSpinBoxFactory, QtSliderFactory, QtScrollBarFactory

Definition at line 118 of file qtpropertymanager.h.


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

Generated by  Doxygen 1.6.0   Back to index