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());
}
#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());
}
#endif
-
- return KDirSortFilterProxyModel::lessThan(left, right);
+ return KDirSortFilterProxyModel::subsortLessThan(left, right);
}
#include "dolphinsortfilterproxymodel.moc"
* 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;