Add thickness function

This commit is contained in:
wmayer
2012-11-26 21:10:09 +01:00
parent 4af7221a70
commit 72bba68c2b
21 changed files with 926 additions and 33 deletions

View File

@@ -345,6 +345,14 @@ void Document::abortTransaction()
}
}
bool Document::hasPendingTransaction() const
{
if (d->activeUndoTransaction)
return true;
else
return false;
}
void Document::clearUndos()
{
if (d->activeUndoTransaction)

View File

@@ -208,6 +208,8 @@ public:
void commitTransaction();
/// Abort the actually running transaction.
void abortTransaction();
/// Check if a transaction is open
bool hasPendingTransaction() const;
/// Set the Undo limit in Byte!
void setUndoLimit(unsigned int UndoMemSize=0);
/// Returns the actual memory consumption of the Undo redo stuff.