From 0b5e83e29f77f809ad85980c620e74895850e3d8 Mon Sep 17 00:00:00 2001 From: Peter Hedlund Date: Sun, 12 Feb 2006 21:49:44 +0000 Subject: [PATCH] queryLang->queryIdentifier svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=508863 --- kdeeducore/keduvocdocument.h | 16 ++++++++++++++-- kdeeducore/keduvockvtmlreader.cpp | 2 +- kdeeducore/keduvockvtmlwriter.cpp | 2 +- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/kdeeducore/keduvocdocument.h b/kdeeducore/keduvocdocument.h index 4482156..ea1b120 100644 --- a/kdeeducore/keduvocdocument.h +++ b/kdeeducore/keduvocdocument.h @@ -579,10 +579,22 @@ class KEduVocDocument : public QObject */ QFont* font() const; - inline void queryLang(QString &org, QString &trans) const + /** + * Retrieves the identifiers for the current query + * + * @param org identifier for original + * @param trans identifier for translation + */ + inline void queryIdentifier(QString &org, QString &trans) const { org = m_queryorg; trans = m_querytrans; } - inline void setQueryLang(const QString &org, const QString &trans) + /** + * Sets the identifiers for the current query + * + * @param org identifier for original + * @param trans identifier for translation + */ + inline void setQueryIdentifier(const QString &org, const QString &trans) { m_queryorg = org; m_querytrans = trans; } /** diff --git a/kdeeducore/keduvockvtmlreader.cpp b/kdeeducore/keduvockvtmlreader.cpp index a754ab8..79b7303 100644 --- a/kdeeducore/keduvockvtmlreader.cpp +++ b/kdeeducore/keduvockvtmlreader.cpp @@ -1411,7 +1411,7 @@ bool KEduVocKvtmlReader::readExpression(QDomElement &domElementParent) domElementExpressionChild = domElementExpressionChild.nextSibling().toElement(); } if (m_doc->numEntries() == 0) - m_doc->setQueryLang(q_org, q_trans); + m_doc->setQueryIdentifier(q_org, q_trans); m_doc->m_vocabulary.push_back(expr); return true; diff --git a/kdeeducore/keduvockvtmlwriter.cpp b/kdeeducore/keduvockvtmlwriter.cpp index 7f324f1..5470bf4 100644 --- a/kdeeducore/keduvockvtmlwriter.cpp +++ b/kdeeducore/keduvockvtmlwriter.cpp @@ -685,7 +685,7 @@ bool KEduVocKvtmlWriter::writeDoc(KEduVocDocument *doc, const QString &generator QString q_org, q_trans; QList::const_iterator first = m_doc->m_vocabulary.begin (); - m_doc->queryLang(q_org, q_trans); + m_doc->queryIdentifier(q_org, q_trans); int ent_no = 0; int ent_percent = (int) m_doc->m_vocabulary.size () / 100; -- 2.47.3