The QtMarginsPropertyManager provides and manages QMargins properties.
More...
|
| Q_PRIVATE_SLOT (d_func(), void slotIntChanged(QtProperty *, int)) Q_PRIVATE_SLOT(d_func() |
|
◆ QtMarginsPropertyManager()
QtMarginsPropertyManager::QtMarginsPropertyManager |
( |
QObject * | parent = 0 | ) |
|
Creates a manager with the given parent.
◆ ~QtMarginsPropertyManager()
QtMarginsPropertyManager::~QtMarginsPropertyManager |
( |
| ) |
|
Destroys this manager, and all the properties it has created.
◆ constraint()
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()
◆ initializeProperty()
void QtMarginsPropertyManager::initializeProperty |
( |
QtProperty * | property | ) |
|
|
protectedvirtual |
◆ setConstraint
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()
◆ setValue
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()
◆ subIntPropertyManager()
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()
◆ uninitializeProperty()
void QtMarginsPropertyManager::uninitializeProperty |
( |
QtProperty * | property | ) |
|
|
protectedvirtual |
◆ value()
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()
◆ valueText()
QString QtMarginsPropertyManager::valueText |
( |
const QtProperty * | property | ) |
const |
|
protectedvirtual |
The documentation for this class was generated from the following files:
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/itomWidgets/paramPropertyBrowser/qtpropertymanager.h
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/itomWidgets/paramPropertyBrowser/qtpropertymanager.cpp