The PropertyCleaner struct Make deleting dynamic property safer by postponing its destruction. More...
Public Member Functions | |
PropertyCleaner (Property *p) | |
~PropertyCleaner () | |
Static Public Member Functions | |
static void | add (Property *prop) |
Public Attributes | |
Property * | prop |
The PropertyCleaner struct Make deleting dynamic property safer by postponing its destruction.
Dynamic property can be removed at any time, even during triggering of onChanged() signal of the removing property. This patch introduced static function Property::destroy() to make it safer by queueing any removed property, and only deleting them when no onChanged() call is active.
App::PropertyCleaner::PropertyCleaner | ( | Property * | p | ) |
App::PropertyCleaner::~PropertyCleaner | ( | ) |
References prop.
|
static |
References prop.
Referenced by App::Property::destroy().
Property* App::PropertyCleaner::prop |
Referenced by add(), PathScripts.PathGui.QuantitySpinBox::attachTo(), PathScripts.PathGui.QuantitySpinBox::expression(), PathScripts.PathGui.QuantitySpinBox::setMinimum(), PathScripts.PathGui.QuantitySpinBox::updateProperty(), PathScripts.PathGui.QuantitySpinBox::updateSpinBox(), and ~PropertyCleaner().