Expose transaction events to document observer

This commit is contained in:
Stefan Tröger
2017-03-09 08:05:21 +01:00
committed by wmayer
parent 2a15d8fc3a
commit 0edf6892b3
6 changed files with 108 additions and 0 deletions

View File

@@ -961,6 +961,8 @@ void Document::openTransaction(const char* name)
d->activeUndoTransaction->Name = name;
else
d->activeUndoTransaction->Name = "<empty>";
signalOpenTransaction(*this, name);
}
}
@@ -1000,6 +1002,7 @@ void Document::commitTransaction()
delete mUndoTransactions.front();
mUndoTransactions.pop_front();
}
signalCommitTransaction(*this);
}
}
@@ -1014,6 +1017,7 @@ void Document::abortTransaction()
// destroy the undo
delete d->activeUndoTransaction;
d->activeUndoTransaction = 0;
signalAbortTransaction(*this);
}
}