EvalWidget.h 592 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef EVALWIDGET_H
  2. #define EVALWIDGET_H
  3. #include <QWidget>
  4. class QVBoxLayout;
  5. class QLabel;
  6. class EvalWidget : public QWidget
  7. {
  8. Q_OBJECT
  9. public:
  10. explicit EvalWidget(int type, QWidget *parent = nullptr);
  11. int type() const;
  12. void setType(int type);
  13. void setTitle(const QString title);
  14. void initWidgets();
  15. void initLayout();
  16. protected:
  17. int m_type = 0;
  18. QVBoxLayout *m_layout = nullptr;
  19. QVBoxLayout *m_contentLayout = nullptr;
  20. QLabel *m_title = nullptr;
  21. QWidget *m_seperator = nullptr;
  22. signals:
  23. };
  24. #endif // EVALWIDGET_H