#include <customproperty.h>
Public Member Functions | |
| SizePolicyCustomProperty (Property *parent) | |
| void | setValue (const TQVariant &value, bool rememberOldValue) |
| TQVariant | value () const |
| bool | handleValue () const |
Public Member Functions inherited from KoProperty::CustomProperty | |
| CustomProperty (Property *parent) | |
Additional Inherited Members | |
Protected Member Functions inherited from KoProperty::CustomProperty | |
| void | emitPropertyChanged () |
Protected Attributes inherited from KoProperty::CustomProperty | |
| Property * | m_property |
Detailed Description
Custom property implementation for TQSizePolicy type.
Definition at line 110 of file customproperty.h.
Constructor & Destructor Documentation
◆ SizePolicyCustomProperty()
| SizePolicyCustomProperty::SizePolicyCustomProperty | ( | Property * | parent | ) |
Definition at line 269 of file customproperty.cpp.
◆ ~SizePolicyCustomProperty()
| SizePolicyCustomProperty::~SizePolicyCustomProperty | ( | ) |
Definition at line 310 of file customproperty.cpp.
Member Function Documentation
◆ handleValue()
|
virtual |
Tells whether CustomProperty should be used to get the property's value. CustomProperty::setValue() will always be called. But if hadleValue() == true, then the value stored in the Property won't be changed. You should return true for child properties, and false for others.
Reimplemented from KoProperty::CustomProperty.
Definition at line 315 of file customproperty.cpp.
◆ setValue()
|
virtual |
This function is called by Property::setValue() when a custom property is set. You don't have to modify the property value, it is done by Property class. You just have to update child or parent properties value (m_property->parent()->setValue()). Note that, when calling Property::setValue, you need to set useCustomProperty (3rd parameter) to false, or there will be infinite recursion.
Implements KoProperty::CustomProperty.
Definition at line 332 of file customproperty.cpp.
◆ value()
|
virtual |
This function is called by Property::value() when a custom property is set and handleValue() is true. You should return property's value, taken from parent's value.
Implements KoProperty::CustomProperty.
Definition at line 361 of file customproperty.cpp.
The documentation for this class was generated from the following files:

Public Member Functions inherited from