GemsSubWidget.h 977 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 <QWidget>
  11. #include <TagWidget.h>
  12. #endif
  13. QT_FORWARD_DECLARE_CLASS(QVBoxLayout)
  14. QT_FORWARD_DECLARE_CLASS(QLabel)
  15. namespace O3DE::ProjectManager
  16. {
  17. // Title, description and tag widget container used for the depending and conflicting gems
  18. class GemsSubWidget
  19. : public QWidget
  20. {
  21. Q_OBJECT
  22. public:
  23. GemsSubWidget(QWidget* parent = nullptr);
  24. void Update(const QString& title, const QString& text, const QVector<Tag>& tags);
  25. signals:
  26. void TagClicked(const Tag& tag);
  27. private:
  28. QLabel* m_titleLabel = nullptr;
  29. QLabel* m_textLabel = nullptr;
  30. TagContainerWidget* m_tagWidget = nullptr;
  31. };
  32. } // namespace O3DE::ProjectManager