ChoiceQuestion Class Reference

A specialized Question that has a list of choices as possible answers. More...

#include <question.h>

Inheritance diagram for ChoiceQuestion:

Inheritance graph
[legend]
Collaboration diagram for ChoiceQuestion:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ChoiceQuestion (QString name, QString label, QStringList choices, QVariant defaultValue, bool open=false)
 
Parameters:
choices a list of possible valid values

QStringList choices () const
 For some Questions, there is a list of valid answers.

Protected Attributes

QStringList m_Choices

Detailed Description

A specialized Question that has a list of choices as possible answers.

Definition at line 67 of file question.h.


Constructor & Destructor Documentation

ChoiceQuestion::ChoiceQuestion ( QString  name,
QString  label,
QStringList  choices,
QVariant  defaultValue,
bool  open = false 
)

Parameters:
choices a list of possible valid values

Parameters:
defaultValue the initial selection

Definition at line 18 of file question.cpp.


Member Function Documentation

QStringList ChoiceQuestion::choices (  )  const [virtual]

For some Questions, there is a list of valid answers.

Returns:
the list of valid answers, in the case where they can be enumerated as a stringlist

Reimplemented from Question.

Definition at line 48 of file question.cpp.

References m_Choices.


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