Revision abb9e8c5
Von Christian Ehringfeld vor fast 9 Jahren hinzugefügt
samples/example/models/pupil.h | ||
---|---|---|
|
||
class Pupil : public Person {
|
||
Q_OBJECT
|
||
Q_PROPERTY(QString legalGuardianNote READ getLegalGuardianNote WRITE
|
||
setLegalGuardianNote)
|
||
public:
|
||
Q_INVOKABLE Pupil();
|
||
Pupil(QString firstName, QString familyName, Gender gender = UNKNOWNGENDER,
|
||
... | ... | |
QString getForm() const;
|
||
void setForm(const QString &value);
|
||
|
||
QString getLegalGuardianNote() const;
|
||
void setLegalGuardianNote(const QString &value);
|
||
|
||
protected:
|
||
QString form;
|
||
QString legalGuardianNote;
|
||
|
||
};
|
||
|
Auch abrufbar als: Unified diff
example not working - wip, maybe tomorrow