diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2012-04-13 00:14:02 -0500 |
---|---|---|
committer | Darrell Anderson <humanreadable@yahoo.com> | 2012-04-13 00:14:02 -0500 |
commit | c3f2c830d0394a175f308b1866b09143e28b2fe0 (patch) | |
tree | 0cbb52aa3b8b12827d45cdda7fe8cd7907f3a3c9 /kanagram | |
parent | 33cecfe986fcea059c65f4e29a26bdeb074f4a70 (diff) | |
download | tdeedu-c3f2c830d0394a175f308b1866b09143e28b2fe0.tar.gz tdeedu-c3f2c830d0394a175f308b1866b09143e28b2fe0.zip |
Fix inadvertent "TQ" changes.
Diffstat (limited to 'kanagram')
-rw-r--r-- | kanagram/src/keduvocdocument.h | 4 | ||||
-rw-r--r-- | kanagram/src/keduvockvtmlreader.cpp | 4 | ||||
-rw-r--r-- | kanagram/src/keduvockvtmlwriter.cpp | 10 |
3 files changed, 9 insertions, 9 deletions
diff --git a/kanagram/src/keduvocdocument.h b/kanagram/src/keduvocdocument.h index dd2a7955..b5ef5fff 100644 --- a/kanagram/src/keduvocdocument.h +++ b/kanagram/src/keduvocdocument.h @@ -48,7 +48,7 @@ #define KV_ORG "o" // original expression in specified language #define KV_TRANS "t" // translated expression in specified language #define KV_LANG "l" // language: en, de, it, fr ... -#define KV_TQUERY "q" // query: org or translation +#define KV_QUERY "q" // query: org or translation #define KV_O "o" // org #define KV_T "t" // translation #define KV_GRADE "g" // grade of knowledge: 0=well known, x=not known for x times @@ -104,7 +104,7 @@ #define KV_LESS_GRP "lesson" // lesson descriptor group #define KV_LESS_CURR "current" // is current lesson #define KV_LESS_DESC "desc" // lesson descriptor -#define KV_LESS_TQUERY "query" // lesson contained in query +#define KV_LESS_QUERY "query" // lesson contained in query #define KV_LESS_NO "no" // lesson descriptor number /* diff --git a/kanagram/src/keduvockvtmlreader.cpp b/kanagram/src/keduvockvtmlreader.cpp index 80ee39c6..799079a6 100644 --- a/kanagram/src/keduvockvtmlreader.cpp +++ b/kanagram/src/keduvockvtmlreader.cpp @@ -78,7 +78,7 @@ bool KEduVocKvtmlReader::readLesson(TQDomElement &domElementParent) if (isCurr && no != 0) m_doc->setCurrentLesson(no); - TQDomAttr domAttrQuery = domElementChild.attributeNode(KV_LESS_TQUERY); + TQDomAttr domAttrQuery = domElementChild.attributeNode(KV_LESS_QUERY); if (!domAttrQuery.isNull()) m_doc->lessons_in_query.push_back(domAttrQuery.value().toInt() != 0); else @@ -941,7 +941,7 @@ bool KEduVocKvtmlReader::readExpressionChildAttributes( TQDomElement &domElement pronunce = domAttrPronunce.value(); query_id = ""; - TQDomAttr domAttrQuery = domElementExpressionChild.attributeNode(KV_TQUERY); + TQDomAttr domAttrQuery = domElementExpressionChild.attributeNode(KV_QUERY); if (!domAttrQuery.isNull()) query_id = domAttrQuery.value(); diff --git a/kanagram/src/keduvockvtmlwriter.cpp b/kanagram/src/keduvockvtmlwriter.cpp index 91f3e81e..8cb96cc6 100644 --- a/kanagram/src/keduvockvtmlwriter.cpp +++ b/kanagram/src/keduvockvtmlwriter.cpp @@ -126,7 +126,7 @@ bool KEduVocKvtmlWriter::saveLessonKvtMl (TQDomDocument &domDoc, TQDomElement &d if (m_doc->getCurrentLesson() == lfn+1) domElementDesc.setAttribute (KV_LESS_CURR, 1); if (lfn < (int) m_doc->lessons_in_query.size() && m_doc->lessons_in_query[lfn]) - domElementDesc.setAttribute (KV_LESS_TQUERY, 1); + domElementDesc.setAttribute (KV_LESS_QUERY, 1); domElementDesc.appendChild(domTextDesc); domElementLesson.appendChild(domElementDesc); @@ -746,9 +746,9 @@ bool KEduVocKvtmlWriter::writeDoc(KEduVocDocument *doc, const TQString &generato s = "original"; domElementOriginal.setAttribute (KV_LANG, s); if (s == q_org) - domElementOriginal.setAttribute(KV_TQUERY, (TQString) KV_O); + domElementOriginal.setAttribute(KV_QUERY, (TQString) KV_O); else if (s == q_trans) - domElementOriginal.setAttribute(KV_TQUERY, (TQString) KV_T); + domElementOriginal.setAttribute(KV_QUERY, (TQString) KV_T); } @@ -825,9 +825,9 @@ bool KEduVocKvtmlWriter::writeDoc(KEduVocDocument *doc, const TQString &generato } domElementTranslation.setAttribute(KV_LANG, s); if (s == q_org) - domElementTranslation.setAttribute(KV_TQUERY, (TQString) KV_O); + domElementTranslation.setAttribute(KV_QUERY, (TQString) KV_O); else if (s == q_trans) - domElementTranslation.setAttribute(KV_TQUERY, (TQString) KV_T); + domElementTranslation.setAttribute(KV_QUERY, (TQString) KV_T); } TQString s1, s2; |