ModalWindowDismisser.h 561 B

12345678910111213141516171819202122232425262728
  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. // Description : Utility for dismissing every modal windows
  9. #pragma once
  10. #include <QObject>
  11. class QDialog;
  12. class ModalWindowDismisser
  13. : public QObject
  14. {
  15. public:
  16. ModalWindowDismisser();
  17. ~ModalWindowDismisser();
  18. private:
  19. bool eventFilter(QObject* object, QEvent* event) override;
  20. std::vector<QDialog*> m_windows;
  21. };