#include <question.h>
Inheritance diagram for ChoiceQuestion:


Public Member Functions | ||||
| ChoiceQuestion (QString name, QString label, QStringList choices, QVariant defaultValue, bool open=false) | ||||
| ||||
| QStringList | choices () const | |||
| For some Questions, there is a list of valid answers. | ||||
Protected Attributes | ||||
| QStringList | m_Choices | |||
Definition at line 67 of file question.h.
| ChoiceQuestion::ChoiceQuestion | ( | QString | name, | |
| QString | label, | |||
| QStringList | choices, | |||
| QVariant | defaultValue, | |||
| bool | open = false | |||
| ) |
| choices | a list of possible valid values |
| defaultValue | the initial selection |
Definition at line 18 of file question.cpp.
| QStringList ChoiceQuestion::choices | ( | ) | const [virtual] |
For some Questions, there is a list of valid answers.
Reimplemented from Question.
Definition at line 48 of file question.cpp.
References m_Choices.
1.5.1