#include <formmodel.h>
Inheritance diagram for FormModel:


Public Slots | ||||
| void | setValues (QList< QVariant > vlist) | |||
| ||||
| bool | setProperty (QString name, QVariant value) | |||
| Question * | question (QString name) const | |||
| void | insert (int position, Question *q) | |||
| bool | remove (QString name) | |||
Signals | ||||
| void | modelChanged () | |||
| Emitted whenever the form model is changed (currently only when setValues is called);. | ||||
Public Member Functions | ||||
| FormModel (QString name=QString()) | ||||
| QStringList | keys () const | |||
| QString | toString () const | |||
| FormModel & | operator<< (Question *q) | |||
| const QuestionList & | questions () const | |||
| QVariant | property (QString name) const | |||
| overloaded to support QString | ||||
Protected Attributes | ||||
| QuestionList | m_Questions | |||
Models a form (a list of questions)
Definition at line 14 of file formmodel.h.
| void FormModel::modelChanged | ( | ) | [signal] |
Emitted whenever the form model is changed (currently only when setValues is called);.
TODO: connect the dataChanged() of each Question to a slot here which re-emits the signal?
Referenced by setValues().
1.5.1