FormModel Class Reference

A managed collection of Question*. More...

#include <formmodel.h>

Inheritance diagram for FormModel:

Inheritance graph
[legend]
Collaboration diagram for FormModel:

Collaboration graph
[legend]
List of all members.

Public Slots

void setValues (QList< QVariant > vlist)
 
Parameters:
vlist a list of QVariants for setting each question value

bool setProperty (QString name, QVariant value)
Questionquestion (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
FormModeloperator<< (Question *q)
const QuestionListquestions () const
QVariant property (QString name) const
 overloaded to support QString

Protected Attributes

QuestionList m_Questions

Detailed Description

A managed collection of Question*.

Models a form (a list of questions)

Definition at line 14 of file formmodel.h.


Member Function Documentation

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().


The documentation for this class was generated from the following files:
Generated on Wed Sep 30 01:15:44 2009 for oopapidocs by  doxygen 1.5.1