The class extends QtVariantPropertyManager by support for objects of the following types:
.
More...
#include <bpspropertymanager.h>
|
virtual void | setAttribute (QtProperty *aProperty, const QString &aName, const QVariant &aValue) |
| Sets the value of the specified attribute for the property. More...
|
|
virtual void | setValue (QtProperty *aProperty, const QVariant &aValue) |
| Sets the value of the given property to value. More...
|
|
|
virtual void | initializeProperty (QtProperty *aProperty) |
| This function is called whenever a new valid property pointer has been created, passing the pointer as parameter. More...
|
|
virtual void | uninitializeProperty (QtProperty *aProperty) |
| This function is called just before the specified property is destroyed. More...
|
|
virtual QIcon | valueIcon (const QtProperty *aProperty) const |
| Get a icon representing the current state of the given property. More...
|
|
virtual QString | valueText (const QtProperty *aProperty) const |
| Get a string representing the current state of the given property. More...
|
|
The class extends QtVariantPropertyManager by support for objects of the following types:
.
Class | Type/Usertype | Description |
BpsMargins | marginsTypeId() | Margins as used within reports. The attributes minimum, maximum and decimals apply to the margin values. |
QPen | QVariant::Pen | The pen attributes style (excluding Qt::CustomDashLine), widthF and color are supported. The attributes minimum, maximum and decimals apply to the widthF value. |
QBrush | QVariant::Brush | The brush attributes style (patterns only), scale percent (as transform m11/m22) and color are supported. The attributes minimum, maximum and decimals apply to the scale value. |
◆ BpsPropertyManager()
BpsPropertyManager::BpsPropertyManager |
( |
QObject * |
aParent | ) |
|
Creates a manager with the given parent.
- Parameters
-
aParent | The parent to use. |
◆ initializeProperty()
virtual void BpsPropertyManager::initializeProperty |
( |
QtProperty * |
aProperty | ) |
|
|
protectedvirtual |
This function is called whenever a new valid property pointer has been created, passing the pointer as parameter.
The purpose is to let the manager know that the property has been created so that it can provide additional attributes for the new property.
- Parameters
-
aProperty | The property being initialized. |
◆ isPropertyTypeSupported()
virtual bool BpsPropertyManager::isPropertyTypeSupported |
( |
int |
aPropertyType | ) |
const |
|
virtual |
Check if a given property type is supported by the manager.
- Parameters
-
aPropertyType | The property type to check. |
- Returns
- True if supported.
◆ marginsTypeId()
static int BpsPropertyManager::marginsTypeId |
( |
| ) |
|
|
static |
◆ setAttribute
virtual void BpsPropertyManager::setAttribute |
( |
QtProperty * |
aProperty, |
|
|
const QString & |
aName, |
|
|
const QVariant & |
aValue |
|
) |
| |
|
virtualslot |
Sets the value of the specified attribute for the property.
- Parameters
-
aProperty | The property to assign the attribute to. |
aName | Name of the attribute. |
aValue | The value to assign. |
◆ setValue
virtual void BpsPropertyManager::setValue |
( |
QtProperty * |
aProperty, |
|
|
const QVariant & |
aValue |
|
) |
| |
|
virtualslot |
Sets the value of the given property to value.
The specified value must be of a type returned by valueType(), or of type that can be converted to valueType() using the QVariant::canConvert() function, otherwise this function does nothing.
- Parameters
-
aProperty | The property to set. |
aValue | The value to set. |
◆ uninitializeProperty()
virtual void BpsPropertyManager::uninitializeProperty |
( |
QtProperty * |
aProperty | ) |
|
|
protectedvirtual |
This function is called just before the specified property is destroyed.
The purpose is to let the property manager know that the property is being destroyed so that it can remove the property's additional attributes.
- Parameters
-
aProperty | The property being uninitialized. |
◆ value()
virtual QVariant BpsPropertyManager::value |
( |
const QtProperty * |
aProperty | ) |
const |
|
virtual |
Get the properties value.
- Parameters
-
aProperty | The property to get the value from. |
- Returns
- The value of the property.
◆ valueIcon()
virtual QIcon BpsPropertyManager::valueIcon |
( |
const QtProperty * |
aProperty | ) |
const |
|
protectedvirtual |
Get a icon representing the current state of the given property.
- Parameters
-
aProperty | The property to query. |
- Returns
- The icon representation.
◆ valueText()
virtual QString BpsPropertyManager::valueText |
( |
const QtProperty * |
aProperty | ) |
const |
|
protectedvirtual |
Get a string representing the current state of the given property.
- Parameters
-
aProperty | The property to query. |
- Returns
- The string representation.
◆ valueType()
virtual int BpsPropertyManager::valueType |
( |
int |
aPropertyType | ) |
const |
|
virtual |
Get the value type belonging to a given property type.
- Parameters
-
aPropertyType | The property type. |
- Returns
- The value type.
The documentation for this class was generated from the following file: