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

void TaskView::forceNewTask (  ) [virtual]

force the creation of a new task

resets the current state, creates a new task and count the last task as wrong, if it wasn't solved (in _NEXT_TASK state) yet mainly used after changing the task parameters

Implements ExerciseBase.

Definition at line 250 of file taskview.cpp.

References nextTask(), and signalTaskSkipped().

Referenced by MainQtWidget::newTask().

{
#ifdef DEBUG
    kDebug() << "forceNewTask TaskView()";
#endif

    if (m_currentState == _CHECK_TASK) {
        // emit the signal for skipped
        signalTaskSkipped();
    }
    m_currentState = _CHECK_TASK;
    m_checkButton->setText (i18n ("&Check"));

    // generate next task
    (void) nextTask();
}

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