diff options
Diffstat (limited to 'commands/command_base.cpp')
-rw-r--r-- | commands/command_base.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/commands/command_base.cpp b/commands/command_base.cpp index edfc97bf3..20147a541 100644 --- a/commands/command_base.cpp +++ b/commands/command_base.cpp @@ -29,6 +29,12 @@ bool isClean() return undoStack.isClean(); } +// this can be used to get access to the signals emitted by the QUndoStack +QUndoStack *getUndoStack() +{ + return &undoStack; +} + QAction *undoAction(QObject *parent) { return undoStack.createUndoAction(parent, QCoreApplication::translate("Command", "&Undo")); |