GemRepoListView.h 980 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 <QListView>
  11. #include <QItemSelectionModel>
  12. #endif
  13. QT_FORWARD_DECLARE_CLASS(QAbstractItemModel)
  14. namespace O3DE::ProjectManager
  15. {
  16. QT_FORWARD_DECLARE_CLASS(AdjustableHeaderWidget)
  17. class GemRepoListView
  18. : public QListView
  19. {
  20. Q_OBJECT
  21. public:
  22. explicit GemRepoListView(
  23. QAbstractItemModel* model,
  24. QItemSelectionModel* selectionModel,
  25. AdjustableHeaderWidget* header,
  26. QWidget* parent = nullptr);
  27. ~GemRepoListView() = default;
  28. signals:
  29. void RemoveRepo(const QModelIndex& modelIndex);
  30. void RefreshRepo(const QModelIndex& modelIndex);
  31. };
  32. } // namespace O3DE::ProjectManager