![]() |
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.
|
Widget which represents single question in Quiz. More...
#include <quizitem.h>
Public Types | |
enum | State { Unanswered, AnsweredCorrectly, AnsweredWrongly } |
Enum containing possible states for widget for the question. | |
Public Slots | |
void | reset () |
Resets widget for the question to its original/default state. | |
Signals | |
void | questionSubmitted () |
Emitted if users clicks "Next" or "Submit". | |
Public Member Functions | |
QuizItem (QWidget *parent=0) | |
void | setQuestion (const QuizQuestion &question, int question_number, int total_questions) |
Sets new question for this widget. More... | |
State | state () const |
Access to state of quiz question widget. More... | |
Widget which represents single question in Quiz.
Definition at line 47 of file quizitem.h.
void QuizItem::setQuestion | ( | const QuizQuestion & | question, |
int | question_number, | ||
int | total_questions | ||
) |
Sets new question for this widget.
question | Question object. |
question_number | Number of the question. |
Definition at line 74 of file quizitem.cpp.
QuizItem::State QuizItem::state | ( | ) | const |
Access to state of quiz question widget.
Definition at line 92 of file quizitem.cpp.