ReselectingTreeView.h 618 B

12345678910111213141516171819202122232425
  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. #include <QTreeView>
  10. namespace EMotionFX
  11. {
  12. // A QTreeView subclass that emits selectionChanged whenever it gains focus
  13. class ReselectingTreeView
  14. : public QTreeView
  15. {
  16. public:
  17. void focusInEvent(QFocusEvent* event) override;
  18. void RecursiveGetAllChildren(const QModelIndex& index, QModelIndexList& outIndicies);
  19. };
  20. } // namespace EMotionFX