Expose document property changes to python document observer

This commit is contained in:
ickby
2018-10-01 06:47:46 +02:00
committed by wmayer
parent e91de65df0
commit f68e36de41
7 changed files with 108 additions and 0 deletions

View File

@@ -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);