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

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

QtSizePropertyManager Class Reference

The QtSizePropertyManager provides and manages QSize properties. More...

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

List of all members.

Public Slots

void setMaximum (QtProperty *property, const QSize &maxVal)
void setMinimum (QtProperty *property, const QSize &minVal)
void setRange (QtProperty *property, const QSize &minVal, const QSize &maxVal)
void setValue (QtProperty *property, const QSize &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, const QSize &minVal, const QSize &maxVal)
void valueChanged (QtProperty *property, const QSize &val)

Public Member Functions

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

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

QtSizePropertyManagerPrivated_ptr

Detailed Description

The QtSizePropertyManager provides and manages QSize properties.

A size property has nested 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 size property also has a range of valid values defined by a minimum size and a maximum size. These sizes can be retrieved using the minimum() and the maximum() functions, and set using the setMinimum() and setMaximum() slots. Alternatively, the range can be defined in one go using the setRange() slot.

In addition, QtSizePropertyManager 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 sizes.

See also:
QtAbstractPropertyManager, QtIntPropertyManager, QtSizeFPropertyManager

Definition at line 465 of file qtpropertymanager.h.


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

Generated by  Doxygen 1.6.0   Back to index