]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Adapt to changes done on kdelibs
authorRafael Fernández López <ereslibre@kde.org>
Sun, 2 Dec 2007 23:50:21 +0000 (23:50 +0000)
committerRafael Fernández López <ereslibre@kde.org>
Sun, 2 Dec 2007 23:50:21 +0000 (23:50 +0000)
CCMAIL: peter.penz@gmx.at

svn path=/trunk/KDE/kdebase/apps/; revision=744218

src/dolphinsortfilterproxymodel.cpp
src/dolphinsortfilterproxymodel.h

index cb0696b6c2e76f3bdf1f728f5042b2a10629a185..3960cee5d0ef474c299a10b16d5fc7b1d48753b5 100644 (file)
@@ -93,8 +93,8 @@ DolphinView::Sorting DolphinSortFilterProxyModel::sortingForColumn(int column)
     return sortingTypeTable[column];
 }
 
-bool DolphinSortFilterProxyModel::lessThanGeneralPurpose(const QModelIndex &left,
-                                                         const QModelIndex &right) const
+int DolphinSortFilterProxyModel::compareCategories(const QModelIndex &left,
+                                                   const QModelIndex &right) const
 {
 #ifdef HAVE_NEPOMUK
     DolphinModel* dolphinModel = static_cast<DolphinModel*>(sourceModel());
@@ -128,11 +128,11 @@ bool DolphinSortFilterProxyModel::lessThanGeneralPurpose(const QModelIndex &left
     }
 #endif
 
-    return KDirSortFilterProxyModel::lessThanGeneralPurpose(left, right);
+    return KDirSortFilterProxyModel::compareCategories(left, right);
 }
 
-bool DolphinSortFilterProxyModel::lessThan(const QModelIndex& left,
-                                           const QModelIndex& right) const
+bool DolphinSortFilterProxyModel::subsortLessThan(const QModelIndex& left,
+                                                  const QModelIndex& right) const
 {
 #ifdef HAVE_NEPOMUK
     DolphinModel* dolphinModel = static_cast<DolphinModel*>(sourceModel());
@@ -212,8 +212,7 @@ bool DolphinSortFilterProxyModel::lessThan(const QModelIndex& left,
 
     }
 #endif
-
-    return KDirSortFilterProxyModel::lessThan(left, right);
+    return KDirSortFilterProxyModel::subsortLessThan(left, right);
 }
 
 #include "dolphinsortfilterproxymodel.moc"
index 254a90c807839657924725734cd6297c8b59b3db..bc3828d6856539ad7fbc51555ec65fb4f1316820 100644 (file)
@@ -84,15 +84,15 @@ public:
      * will go before a category with a folder with rating 8.
      * That's the main reason for having the lessThanGeneralPurpose() method.
      */
-    virtual bool lessThanGeneralPurpose(const QModelIndex &left,
-                                        const QModelIndex &right) const;
+    virtual int compareCategories(const QModelIndex &left,
+                                  const QModelIndex &right) const;
 
 signals:
     void sortingRoleChanged();
 
 protected:
-    virtual bool lessThan(const QModelIndex& left,
-                          const QModelIndex& right) const;
+    virtual bool subsortLessThan(const QModelIndex& left,
+                                 const QModelIndex& right) const;
 
 private:
     DolphinView::Sorting m_sorting:16;