lib
KoProperty::SizePolicyCustomProperty Class Reference
#include <customproperty.h>
Inheritance diagram for KoProperty::SizePolicyCustomProperty:

Detailed Description
Custom property implementation for QSizePolicy type.
Definition at line 104 of file customproperty.h.
Public Member Functions | |
SizePolicyCustomProperty (Property *parent) | |
~SizePolicyCustomProperty () | |
void | setValue (const QVariant &value, bool rememberOldValue) |
QVariant | value () const |
bool | handleValue () const |
Member Function Documentation
bool SizePolicyCustomProperty::handleValue | ( | ) | const [virtual] |
Tells whether CustomProperty should be used to get the property's value. You should return true for child properties, and false for others.
Reimplemented from KoProperty::CustomProperty.
Definition at line 313 of file customproperty.cpp.
void SizePolicyCustomProperty::setValue | ( | const QVariant & | value, | |
bool | rememberOldValue | |||
) | [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 330 of file customproperty.cpp.
QVariant SizePolicyCustomProperty::value | ( | ) | const [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 359 of file customproperty.cpp.
The documentation for this class was generated from the following files: