Expose document property changes to python document observer
This commit is contained in:
@@ -1098,8 +1098,15 @@ unsigned int Document::getMaxUndoStackSize(void)const
|
||||
return d->UndoMaxStackSize;
|
||||
}
|
||||
|
||||
void Document::onBeforeChange(const Property* prop) {
|
||||
|
||||
signalBeforeChange(*this, *prop);
|
||||
}
|
||||
|
||||
void Document::onChanged(const Property* prop)
|
||||
{
|
||||
signalChanged(*this, *prop);
|
||||
|
||||
// the Name property is a label for display purposes
|
||||
if (prop == &Label) {
|
||||
App::GetApplication().signalRelabelDocument(*this);
|
||||
|
||||
Reference in New Issue
Block a user