]> Git trees. - libqmvoc.git/commitdiff
Move oldType() function to the compability class. Apidox it.
authorFrederik Gladhorn <gladhorn@kde.org>
Tue, 28 Aug 2007 14:42:41 +0000 (14:42 +0000)
committerFrederik Gladhorn <gladhorn@kde.org>
Tue, 28 Aug 2007 14:42:41 +0000 (14:42 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705766

keduvocdocument/keduvockvtmlcompability.h
keduvocdocument/keduvocwordtype.h

index a23fb75b6d3e0cc76c2dff064f7bec271ab6bea4..0294effb6436e6ae1c00c42de5c5687eea1cb347 100644 (file)
@@ -113,9 +113,28 @@ public:
     QSet<QString> documentUsages() const;
 
     ///// TYPES
+    /**
+     * Get the type from an old type definition
+     * @param typeSubtypeString the old string containing everything
+     * @return new main type
+     */
     QString mainTypeFromOldFormat(const QString& typeSubtypeString) const;
+
+    /**
+     * Get the subtype from an old type definition
+     * @param typeSubtypeString the old string containing everything
+     * @return new sub type
+     */
     QString subTypeFromOldFormat(const QString& typeSubtypeString) const;
 
+    /**
+     * To write old docs: convert a nice new type to the ugly old style.
+     * @param mainType type
+     * @param subType subtype
+     * @return old type string
+     */
+    QString oldType(const QString& mainType, const QString& subType) const;
+
 
 private:
     /**
index d896966ca7f26df601b4a49fd97b45201e251779..d358dbaf56e51fe0f9189a0d7f49ed540e319f3f 100644 (file)
@@ -144,8 +144,6 @@ private:
     int mainTypeIndex(const QString& name) const;
     int subTypeIndex( const QString& mainTypeName, const QString& subTypeName ) const;
 
-    QString oldType(const QString& mainType, const QString& subType) const;
-
     class Private;
     Private * const d;
 };