GemRequirementListView.cpp 813 B

1234567891011121314151617181920212223242526
  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 <GemCatalog/GemRequirementListView.h>
  9. #include <GemCatalog/GemRequirementDelegate.h>
  10. namespace O3DE::ProjectManager
  11. {
  12. GemRequirementListView::GemRequirementListView(QAbstractItemModel* model, QItemSelectionModel* selectionModel, QWidget* parent)
  13. : QListView(parent)
  14. {
  15. setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
  16. setStyleSheet("background-color: #444444;");
  17. setModel(model);
  18. setSelectionModel(selectionModel);
  19. setItemDelegate(new GemRequirementDelegate(model, this));
  20. }
  21. } // namespace O3DE::ProjectManager