UndoStack.h 515 B

12345678910111213141516171819202122232425262728293031
  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. #pragma once
  9. #if !defined(Q_MOC_RUN)
  10. #include <QUndoStack>
  11. #include <QUndoGroup>
  12. #endif
  13. class UndoStack
  14. : public QUndoStack
  15. {
  16. Q_OBJECT
  17. public:
  18. UndoStack(QUndoGroup* group);
  19. void SetIsExecuting(bool b);
  20. bool GetIsExecuting() const;
  21. private:
  22. bool m_isExecuting;
  23. };