itom  4.1.0
QtMarginsPropertyManager Class Reference

The QtMarginsPropertyManager provides and manages QMargins properties. More...

Inheritance diagram for QtMarginsPropertyManager:
QtAbstractPropertyManager

Public Slots

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

Signals

void valueChanged (QtProperty *property, const QMargins &val)
 
void constraintChanged (QtProperty *property, const QMargins &constraint)
 
- Signals inherited from QtAbstractPropertyManager
void propertyInserted (QtProperty *property, QtProperty *parent, QtProperty *after)
 
void propertyChanged (QtProperty *property)
 
void propertyRemoved (QtProperty *property, QtProperty *parent)
 
void propertyDestroyed (QtProperty *property)
 

Public Member Functions

 QtMarginsPropertyManager (QObject *parent=0)
 
 ~QtMarginsPropertyManager ()
 
QtIntPropertyManagersubIntPropertyManager () const
 
QMargins value (const QtProperty *property) const
 
QMargins constraint (const QtProperty *property) const
 
- Public Member Functions inherited from QtAbstractPropertyManager
 QtAbstractPropertyManager (QObject *parent=0)
 
 ~QtAbstractPropertyManager ()
 
QSet< QtProperty * > properties () const
 
void clear () const
 
QtPropertyaddProperty (const QString &name=QString())
 

Protected Member Functions

QString valueText (const QtProperty *property) const
 
virtual void initializeProperty (QtProperty *property)
 
virtual void uninitializeProperty (QtProperty *property)
 
- Protected Member Functions inherited from QtAbstractPropertyManager
virtual bool hasValue (const QtProperty *property) const
 
virtual QIcon valueIcon (const QtProperty *property) const
 
virtual QString displayText (const QtProperty *property) const
 
virtual EchoMode echoMode (const QtProperty *) const
 
virtual QtPropertycreateProperty ()
 

Private Member Functions

 Q_PRIVATE_SLOT (d_func(), void slotIntChanged(QtProperty *, int)) Q_PRIVATE_SLOT(d_func()
 

Private Attributes

QtMarginsPropertyManagerPrivated_ptr
 

Detailed Description

The QtMarginsPropertyManager provides and manages QMargins properties.

See also
QtAbstractPropertyManager, QtIntPropertyManager, QtRectPropertyManager

Constructor & Destructor Documentation

QtMarginsPropertyManager::QtMarginsPropertyManager ( QObject *  parent = 0)

Creates a manager with the given parent.

QtMarginsPropertyManager::~QtMarginsPropertyManager ( )

Destroys this manager, and all the properties it has created.

Member Function Documentation

QMargins QtMarginsPropertyManager::constraint ( const QtProperty property) const

Returns the given property's constraining rectangle. If returned value is null QRect it means there is no constraint applied.

See also
value(), setConstraint()
void QtMarginsPropertyManager::initializeProperty ( QtProperty property)
protectedvirtual
void QtMarginsPropertyManager::setConstraint ( QtProperty property,
const QMargins &  constraint 
)
slot

Sets the given property's constraining margins to constraint.

When setting the constraint, the current value is adjusted if necessary (ensuring that the current margins value is inside the constraint). In order to reset the constraint pass a null QMargins value.

See also
setValue(), constraint(), constraintChanged()
void QtMarginsPropertyManager::setValue ( QtProperty property,
const QMargins &  value 
)
slot

Sets the value of the given property to value. Nested properties are updated automatically.

If the specified value is not inside the given property's constraining rectangle, the value is adjusted accordingly to fit within the constraint.

See also
value(), setConstraint(), valueChanged()
QtIntPropertyManager * QtMarginsPropertyManager::subIntPropertyManager ( ) const

Returns the manager that creates the nested x, y, width and height subproperties.

In order to provide editing widgets for the mentioned subproperties in a property browser widget, this manager must be associated with an editor factory.

See also
QtAbstractPropertyBrowser::setFactoryForManager()
void QtMarginsPropertyManager::uninitializeProperty ( QtProperty property)
protectedvirtual

Reimplemented from QtAbstractPropertyManager.

QMargins QtMarginsPropertyManager::value ( const QtProperty property) const

Returns the given property's value.

If the given property is not managed by this manager, this function returns an invalid rectangle.

See also
setValue(), constraint()
QString QtMarginsPropertyManager::valueText ( const QtProperty property) const
protectedvirtual

Reimplemented from QtAbstractPropertyManager.


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