ScreenHeaderWidget.h 798 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 <QFrame>
  11. #endif
  12. QT_FORWARD_DECLARE_CLASS(QLabel)
  13. QT_FORWARD_DECLARE_CLASS(QPushButton)
  14. namespace O3DE::ProjectManager
  15. {
  16. class ScreenHeader
  17. : public QFrame
  18. {
  19. Q_OBJECT
  20. public:
  21. ScreenHeader(QWidget* parent = nullptr);
  22. void setTitle(const QString& text);
  23. void setSubTitle(const QString& text);
  24. QPushButton* backButton();
  25. private:
  26. QLabel* m_title;
  27. QLabel* m_subTitle;
  28. QPushButton* m_backButton;
  29. };
  30. } // namespace O3DE::ProjectManager