questionBody.h 572 B

123456789101112131415161718192021222324252627282930
  1. #ifndef QUESTIONBODY_H
  2. #define QUESTIONBODY_H
  3. #include <QWidget>
  4. #include "json/json.h"
  5. #include "CBaseWidget.h"
  6. namespace Ui {
  7. class questionBody;
  8. }
  9. class questionBody : public CBaseWidget
  10. {
  11. Q_OBJECT
  12. public:
  13. explicit questionBody(const Json::Value jBody, QWidget *parent = nullptr);
  14. ~questionBody();
  15. void setQuesionNo(const QString sItemNo);
  16. int setUI(const int nWidth, const int nNum);
  17. int widgetType();
  18. private:
  19. bool IsNumber(const QString sText);
  20. Ui::questionBody *ui;
  21. Json::Value m_jBody;
  22. };
  23. #endif // QUESTIONBODY_H