33 Q_PROPERTY(
int contentWidth READ contentWidth NOTIFY contentWidthChanged)
34 Q_PROPERTY(
int contentHeight READ contentHeight NOTIFY contentHeightChanged)
35 Q_PROPERTY(QString studentName READ studentName WRITE setStudentName NOTIFY studentNameChanged)
36 Q_PROPERTY(QString className READ className WRITE setClassName NOTIFY classNameChanged)
37 Q_PROPERTY(QString testNumber READ testNumber WRITE setTestNumber NOTIFY testNumberChanged)
38 Q_PROPERTY(QString grade READ grade WRITE setGrade NOTIFY gradeChanged)
39 Q_PROPERTY(
IExerciseValidator *validator READ validator WRITE setValidator NOTIFY validatorChanged)
42 void setModel(QAbstractItemModel *model) override;
43 Q_INVOKABLE
void updateModel(
void);
44 Q_INVOKABLE
void updateStyle(
bool forceLight = false);
45 int contentWidth(
void);
46 int contentHeight(
void);
47 QString studentName(
void);
48 void setStudentName(QString name);
49 QString className(
void);
50 void setClassName(QString name);
51 QString testNumber(
void);
52 void setTestNumber(QString number);
54 void setGrade(QString grade);
59 int sizeHintForColumn(
int column) const override;
60 int sizeHintForRow(
int row) const override;
63 QString m_studentName;
70 void contentWidthChanged(
int width);
71 void contentHeightChanged(
int height);
72 void studentNameChanged(QString name);
73 void classNameChanged(QString name);
74 void testNumberChanged(QString number);
75 void gradeChanged(QString grade);