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

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

QtSizeFPropertyManager Class Reference

The QtSizeFPropertyManager provides and manages QSizeF properties. More...

Inheritance diagram for QtSizeFPropertyManager:
Inheritance graph
Collaboration diagram for QtSizeFPropertyManager:
Collaboration graph

List of all members.

Public Slots

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

Public Member Functions

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

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 QtSizeFPropertyManager provides and manages QSizeF 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 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 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, QtSizeFPropertyManager 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, QtDoublePropertyManager, QtSizePropertyManager

Definition at line 500 of file qtpropertymanager.h.

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

Generated by  Doxygen 1.6.0   Back to index