From: Benjamin Schleinzer Date: Mon, 19 Apr 2010 13:23:09 +0000 (+0000) Subject: WrittenPracticeValidator is here (Still some bugs but a lot more functionality) X-Git-Tag: v4.4.80~4 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=3e7c43e56746defef4498f24fa3770a4c00be5a7;p=libqmvoc.git WrittenPracticeValidator is here (Still some bugs but a lot more functionality) Replaces the answervalidatorold More functionality to come but all from ToDo list is there Changed grading according to ToDo list svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=1116426 --- diff --git a/keduvocdocument/keduvoctext.cpp b/keduvocdocument/keduvoctext.cpp index 890e6bb..9a58fcc 100644 --- a/keduvocdocument/keduvoctext.cpp +++ b/keduvocdocument/keduvoctext.cpp @@ -91,7 +91,7 @@ void KEduVocText::setGrade( grade_t grade ) void KEduVocText::incGrade() { - setGrade( grade() + 1 ); + setGrade( qMax(grade(), KV_LEV1_GRADE ) + 1 ); }