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

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

QtRectPropertyManager Class Reference

The QtRectPropertyManager provides and manages QRect properties. More...

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

List of all members.

Public Slots

void setConstraint (QtProperty *property, const QRect &constraint)
void setValue (QtProperty *property, const QRect &val)

Signals

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

Public Member Functions

QtPropertyaddProperty (const QString &name=QString())
void clear () const
QRect constraint (const QtProperty *property) const
QSet< QtProperty * > properties () const
 QtRectPropertyManager (QObject *parent=0)
QtIntPropertyManagersubIntPropertyManager () const
QRect value (const QtProperty *property) const
 ~QtRectPropertyManager ()

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 slotIntChanged(QtProperty *, int)) Q_PRIVATE_SLOT(d_func()

Private Attributes

QtRectPropertyManagerPrivated_ptr

Detailed Description

The QtRectPropertyManager provides and manages QRect 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 QtIntPropertyManager object. This manager can be retrieved using the subIntPropertyManager() 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, QtRectPropertyManager 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, QtIntPropertyManager, QtRectFPropertyManager

Definition at line 538 of file qtpropertymanager.h.


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

Generated by  Doxygen 1.6.0   Back to index