change and add some comments, remove some warning
[mdictionary] / src / plugins / xdxf / DictsProxyModel.h
index 7f99271..06a35c8 100644 (file)
     Copyright 2010 Comarch S.A.
 
 *******************************************************************************/
-
 /*!
-  \file DictsProxyModel.h
-  \author Mateusz Półrola <mateusz.polrola@gmail.com>
-  */
+    \file DictsProxyModel.h
+    \author Mateusz Półrola <mateusz.polrola@gmail.com>
+*/
 
 #ifndef DICTSPROXYMODEL_H
 #define DICTSPROXYMODEL_H
@@ -32,8 +31,8 @@
 
 
 /*!
-  Proxy model used for filtering and sorting informations about xdxf dictionaries.
-It allow to filter dictionaries based on their langages
+    Proxy model used for filtering and sorting informations about xdxf dictionaries.
+    It allow to filter dictionaries based on their langages
 */
 class DictsProxyModel : public QSortFilterProxyModel
 {
@@ -43,21 +42,33 @@ public:
 
     }
 
-    /*! Returns currently setted language used to filter dictionaries based on dictionarie's language from*/
+    /*!
+        Returns currently setted language used to filter dictionaries
+        based on dictionarie's language from
+    */
     QString from() { return _from;}
 
-        /*! Returns currently setted language used to filter dictionaries based on dictionarie's language to*/
+    /*!
+        Returns currently setted language used to filter dictionaries
+        based on dictionarie's language to
+    */
     QString to() {return _to;}
 
 
-        /*! Sets currently setted language used to filter dictionaries based on dictionarie's language from*/
+    /*!
+        Sets currently setted language used to filter dictionaries based
+        on dictionarie's language from
+    */
     void setFrom(QString from) { _from = from; invalidateFilter(); }
 
-        /*! Sets currently setted language used to filter dictionaries based on dictionarie's language to*/
+    /*!
+        Sets currently setted language used to filter dictionaries
+        based on dictionarie's language to
+    */
     void setTo(QString to) {_to = to; invalidateFilter();}
 
 protected:
-        /*! Filtering passed row*/
+    //! Filtering passed row
     bool filterAcceptsRow(int source_row, const QModelIndex&) const {
         QString sourceFrom = sourceModel()->data(
                 sourceModel()->index(source_row, 0)).toString();
@@ -68,7 +79,11 @@ protected:
                 (_to.isEmpty() || sourceTo == _to));
     }
 
-        /*! Sorting, if sort column is set to column containing size of dictionary, string containing size of it is converted to fload and compared to other dict size*/
+    /*!
+        Sorting, if sort column is set to column containing size of dictionary,
+        string containing size of it is converted to fload and compared to
+        other dict size
+    */
     bool lessThan(const QModelIndex &left, const QModelIndex &right) const {
         if(sortColumn() == 3) {
             QString l = left.model()->data(left).toString();