]> Git trees. - libqmvoc.git/commitdiff
Some defines to QLatin1String so the new i18n methods do not fail
authorAlbert Astals Cid <tsdgeos@terra.es>
Mon, 10 Apr 2006 19:14:04 +0000 (19:14 +0000)
committerAlbert Astals Cid <tsdgeos@terra.es>
Mon, 10 Apr 2006 19:14:04 +0000 (19:14 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=528334

kdeeducore/keduvocdocument.h

index 88ba1ba97425eba1774ba6b69e0af77b0cce9325..af3e884096614309ab6ab2ef86a80bb7814ea097 100644 (file)
 #ifndef KEDUVOCDOCUMENT_H
 #define KEDUVOCDOCUMENT_H
 
+#include <QString>
+
 #define KVD_ZERO_TIME  934329599   // 1999-08-10 23:59:59, never change
 #define KVD_VERS_PREFIX " v"       // kvoctrain v0.1.0
 
 /** XML tags and attribute names */
 
-#define KV_DOCTYPE     "kvtml"     // doctype
+
+static const QLatin1String KV_DOCTYPE("kvtml"); // doctype
 #define KV_TITLE       "title"     // doc title
 #define KV_AUTHOR      "author"    // doc author
 #define KV_LICENSE     "license"   // doc license
@@ -34,8 +37,8 @@
 #define KV_ENCODING    "encoding"  // document encoding  (obsolete!)
 
 #define KV_EXPR        "e"         // entry for one expression
-#define KV_ORG         "o"         // original expression in specified language
-#define KV_TRANS       "t"         // translated expression in specified language
+static const QLatin1String KV_ORG("o");         // original expression in specified language
+static const QLatin1String KV_TRANS("t");       // translated expression in specified language
 #define KV_LANG        "l"         // language: en, de, it, fr ...
 #define KV_QUERY       "q"         // query: org or translation
 #define KV_O           "o"         // org
 */
 
 #define KV_ARTICLE_GRP "article"   // article descriptor group
-#define KV_ART_ENTRY   "e"         // article entry
+static const QLatin1String KV_ART_ENTRY("e");  // article entry
 #define KV_ART_FD      "fd"        // female definite
 #define KV_ART_MD      "md"        // male definite
 #define KV_ART_ND      "nd"        // natural definite