From: Frederik Gladhorn Date: Thu, 6 Sep 2007 12:41:30 +0000 (+0000) Subject: Mark a few lib lesson methods deprecated. Use a int list for the lesson filter. Break... X-Git-Tag: v3.94.0~72 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=f3ca3cf95572485595f75b7783db664b60c11a03;p=libqmvoc.git Mark a few lib lesson methods deprecated. Use a int list for the lesson filter. Breaks inQuery in the lesson view. svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=709040 --- diff --git a/keduvocdocument/keduvocdocument.h b/keduvocdocument/keduvocdocument.h index 79a03b8..de3da64 100644 --- a/keduvocdocument/keduvocdocument.h +++ b/keduvocdocument/keduvocdocument.h @@ -416,31 +416,31 @@ public: * Get list of ALL lessons that are selected for query. * @returns a list with the lessons in the current query */ - QList lessonsInQuery() const; + KDE_DEPRECATED QList lessonsInQuery() const; /** DEPRECATED - USE lesson.setInQuery(); * Sets ALL lessons in the query. Better use addLessonToQuery and removeLessonFromQuery. */ - void setLessonsInQuery( const QList &lesson_iq ); + KDE_DEPRECATED void setLessonsInQuery( const QList &lesson_iq ); /** DEPRECATED - USE lesson.inQuery(); * Check if @p lessonIndex is in the query. * @param lessonIndex - index of the lesson * @return true if in query */ - bool lessonInQuery( int lessonIndex ) const; + KDE_DEPRECATED bool lessonInQuery( int lessonIndex ) const; /** DEPRECATED - USE lesson.setInQuery(); * Add @p lessonIndex to the query. * @param lessonIndex - index of the lesson */ - void addLessonToQuery( int lessonIndex ); + KDE_DEPRECATED void addLessonToQuery( int lessonIndex ); /** DEPRECATED - USE lesson.setInQuery(); * Remove @p lessonIndex from the query. * @param lessonIndex - index of the lesson */ - void removeLessonFromQuery( int lessonIndex ); + KDE_DEPRECATED void removeLessonFromQuery( int lessonIndex ); /** * Append a new lesson to the list of lessons. diff --git a/keduvocdocument/keduvockvtmlreader.cpp b/keduvocdocument/keduvockvtmlreader.cpp index 4f4acaa..03f5b96 100644 --- a/keduvocdocument/keduvockvtmlreader.cpp +++ b/keduvocdocument/keduvockvtmlreader.cpp @@ -224,7 +224,6 @@ bool KEduVocKvtmlReader::readLesson( QDomElement &domElementParent ) currentElement = entryList.item( i ).toElement(); if ( currentElement.parentNode() == domElementParent ) { int no; - bool isCurr = false; attribute = currentElement.attributeNode( KV_LESS_NO ); if ( !attribute.isNull() ) {