standardAnswer.h 631 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef STANDARDANSWER_H
  2. #define STANDARDANSWER_H
  3. #include <QWidget>
  4. #include "CHttpBll.h"
  5. #include "CBaseWidget.h"
  6. namespace Ui {
  7. class standardAnswer;
  8. }
  9. class standardAnswer : public CBaseWidget
  10. {
  11. Q_OBJECT
  12. signals:
  13. void heightChange(int nHeight);
  14. public:
  15. explicit standardAnswer(CSubQuestionStruct &sqs, QWidget *parent = nullptr);
  16. ~standardAnswer();
  17. int setUI(const int nWidth);
  18. int widgetType();
  19. private slots:
  20. void on_btn_sa_showAnswer_clicked();
  21. private:
  22. void initAnswer();
  23. Ui::standardAnswer *ui;
  24. bool m_bShowAnswer;
  25. CSubQuestionStruct &m_sqs;
  26. };
  27. #endif // STANDARDANSWER_H