Logo Search packages:      
Sourcecode: kbruch version File versions  Download package

void TaskView::nextTask (  ) [private]

generate the next task and show it to the user

Definition at line 396 of file taskview.cpp.

References task::create_task(), ResultWidget::setResult(), and TaskWidget::setTask().

Referenced by forceNewTask().

    // change the tooltip of the check button
    m_checkButton->setToolTip (i18n ("Click this button to check your result. The button will not work if you have not entered a result yet."));

    numer_edit->setEnabled (true);
    deno_edit->setEnabled (true);
    integer_edit->setEnabled (true);
    if (m_answerMixed == true)
        integer_edit->setEnabled (true);
    m_skipButton->setEnabled (true);

    m_resultWidget->setResult (solution, -1);

    /* clear user input */
    deno_edit->setText ("");
    numer_edit->setText ("");
    integer_edit->setText ("");
    if (m_answerMixed == true)

    /* create a new task */
    QApplication::setOverrideCursor (Qt::WaitCursor); /* show the sand clock */

    current_task.create_task (max_md, nr_ratios, m_addAdd, m_addDiv, m_addMult, m_addSub);
    QApplication::restoreOverrideCursor(); /* show the normal cursor */

    // update the task widget
    m_taskWidget->setTask ( (const task) (current_task));

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index