Merge branch 'master' into xdxf
[mdictionary] / trunk / src / includes / translation.h
index bf0ce1a..e3f46ee 100644 (file)
@@ -25,6 +25,7 @@
 #define TRANSLATION_H
 
 #include <QString>
+#include <QMetaType>
 
 
 //! Keeping raw form of translation to be parsed only when needed
@@ -32,13 +33,15 @@ class Translation {
   public:
     //! \return word to be translated
     virtual QString key() const = 0;
-
-    //! \returns dictionary information (plugin name, languages, <logo> etc)\
-    //!    to be displayed in translation table header
+    /*! \returns dictionary information (plugin name, languages, <logo> etc)\
+         to be displayed in translation table header */
     virtual QString dictionaryInfo() const = 0;
 
     //! \return parsed raw format into html
     virtual QString toHtml() const = 0;
 };
 
-#endif // TRANSLATION_H
+Q_DECLARE_METATYPE(Translation*);
+
+#endif