BuildmLearn Toolkit  2.0.4
BuildmLearn Toolkit is an easy-to-use program that helps users make mobile apps without any knowledge of application development.
 All Classes Functions Enumerations Groups Pages
QuizQuestion Class Reference

Container for one question. More...

#include <quizquestion.h>

Collaboration diagram for QuizQuestion:
Collaboration graph

Public Member Functions

int correctAnswer () const
 Access to inde of correct answer. More...
 
void setCorrectAnswer (int correctAnswer)
 
void setAnswer (int index, const QString &answer)
 
QString answerOne () const
 
QString answerTwo () const
 
QString answerThree () const
 
QString answerFour () const
 
QString question () const
 
void setQuestion (const QString &question)
 

Detailed Description

Container for one question.

Definition at line 41 of file quizquestion.h.

Member Function Documentation

int QuizQuestion::correctAnswer ( ) const

Access to inde of correct answer.

Returns
Returns index of correct answer.
Warning
Index is NOT numbered from 0. It is numbered from 1. So if first answer is correct, then index of correct answer is ONE.

Definition at line 44 of file quizquestion.cpp.

44  {
45  return m_correctAnswer;
46 }

Here is the caller graph for this function:


The documentation for this class was generated from the following files: