UndoStack.cpp 533 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #include "EditorCommon.h"
  9. #include <QUndoGroup>
  10. UndoStack::UndoStack(QUndoGroup* group)
  11. : QUndoStack(group)
  12. , m_isExecuting(false)
  13. {
  14. }
  15. void UndoStack::SetIsExecuting(bool b)
  16. {
  17. m_isExecuting = b;
  18. }
  19. bool UndoStack::GetIsExecuting() const
  20. {
  21. return m_isExecuting;
  22. }
  23. #include <moc_UndoStack.cpp>