]> Git trees. - libqmvoc.git/commitdiff
queryLang->queryIdentifier
authorPeter Hedlund <peter@peterandlinda.com>
Sun, 12 Feb 2006 21:49:44 +0000 (21:49 +0000)
committerPeter Hedlund <peter@peterandlinda.com>
Sun, 12 Feb 2006 21:49:44 +0000 (21:49 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=508863

kdeeducore/keduvocdocument.h
kdeeducore/keduvockvtmlreader.cpp
kdeeducore/keduvockvtmlwriter.cpp

index 44821569f53a33763697259e105d8178314fa50b..ea1b120ed94f56927a2e65fadbfee5eaf82795ba 100644 (file)
@@ -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; }
 
   /**
index a754ab8e839dbf8bd52316a4f8037bbca17d8166..79b730325829253ff3d62c78c3c009fb712fba46 100644 (file)
@@ -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;
index 7f324f18fe75766e7fd2db11369fadc38ed28fe7..5470bf4d8cf70ea035d560b2fd10191c21543758 100644 (file)
@@ -685,7 +685,7 @@ bool KEduVocKvtmlWriter::writeDoc(KEduVocDocument *doc, const QString &generator
 
   QString q_org, q_trans;
   QList<KEduVocExpression>::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;