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

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

QtRectFPropertyManager Class Reference

The QtRectFPropertyManager provides and manages QRectF properties. More...

Inheritance diagram for QtRectFPropertyManager:
Inheritance graph
Collaboration diagram for QtRectFPropertyManager:
Collaboration graph

List of all members.

Public Slots

void setConstraint (QtProperty *property, const QRectF &constraint)
void setDecimals (QtProperty *property, int prec)
void setValue (QtProperty *property, const QRectF &val)


void constraintChanged (QtProperty *property, const QRectF &constraint)
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 valueChanged (QtProperty *property, const QRectF &val)

Public Member Functions

QtPropertyaddProperty (const QString &name=QString())
void clear () const
QRectF constraint (const QtProperty *property) const
int decimals (const QtProperty *property) const
QSet< QtProperty * > properties () const
 QtRectFPropertyManager (QObject *parent=0)
QtDoublePropertyManagersubDoublePropertyManager () const
QRectF value (const QtProperty *property) const
 ~QtRectFPropertyManager ()

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 Member Functions

 Q_PRIVATE_SLOT (d_func(), void slotDoubleChanged(QtProperty *, double)) Q_PRIVATE_SLOT(d_func()

Private Attributes


Detailed Description

The QtRectFPropertyManager provides and manages QRectF properties.

A rectangle property has nested x, y, width and height subproperties. The top-level property's value can be retrieved using the value() function, and set using the setValue() slot.

The subproperties are created by a QtDoublePropertyManager object. This manager can be retrieved using the subDoublePropertyManager() function. In order to provide editing widgets for the subproperties in a property browser widget, this manager must be associated with an editor factory.

A rectangle property also has a constraint rectangle which can be retrieved using the constraint() function, and set using the setConstraint() slot.

In addition, QtRectFPropertyManager provides the valueChanged() signal which is emitted whenever a property created by this manager changes, and the constraintChanged() signal which is emitted whenever such a property changes its constraint rectangle.

See also:
QtAbstractPropertyManager, QtDoublePropertyManager, QtRectPropertyManager

Definition at line 570 of file qtpropertymanager.h.

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

Generated by  Doxygen 1.6.0   Back to index