void operator() (KEduVocExpression& x) { if (lesson == 0 || lesson == x.getLesson() ) { x.setGrade(index, KV_NORM_GRADE, false); x.setGrade(index, KV_NORM_GRADE, true); x.setQueryCount (index, 0, true); x.setQueryCount (index, 0, false); x.setBadCount (index, 0, true); x.setBadCount (index, 0, false); x.setQueryDate (index, 0, true); x.setQueryDate (index, 0, false); } }
void operator() (KEduVocExpression& x) { for (int i = 0; i <= x.numTranslations(); i++) { if (lesson == 0 || lesson == x.getLesson() ) { x.setGrade(i, KV_NORM_GRADE, false); x.setGrade(i, KV_NORM_GRADE, true); x.setQueryCount (i, 0, true); x.setQueryCount (i, 0, false); x.setBadCount (i, 0, true); x.setBadCount (i, 0, false); x.setQueryDate (i, 0, true); x.setQueryDate (i, 0, false); } } }
bool operator() (const KEduVocExpression& x, const KEduVocExpression& y) const { if (x.getLesson() != y.getLesson() ) return !dir ? x.getLesson() < y.getLesson() : y.getLesson() < x.getLesson(); else return !dir ? (QString::compare(x.getOriginal().upper(), y.getOriginal().upper() ) < 0) : (QString::compare(x.getOriginal().upper(), y.getOriginal().upper() ) > 0); }