diff options
| author | Nick Shaforostoff <[email protected]> | 2007-07-25 19:08:12 +0000 |
|---|---|---|
| committer | Nick Shaforostoff <[email protected]> | 2007-07-25 19:08:12 +0000 |
| commit | b607d3cc4bbce0ef496730b25dfe2ec7bf00ab7a (patch) | |
| tree | 50680b300353da8d91185d34550e7406d0e84599 /src/kcategorizedview.cpp | |
| parent | 993021a16858d4a257eff1052512d07133548987 (diff) | |
ok, second try: make use of KDirSortFilterProxyModel. 'Show in Groups' still works, haven't tested nepomuk part though.
NOTE to dolphin devs: please, consider using 'left.column()' instead of 'sortRole()' in lessThan methods, and 'sorting()' instead of 'sortRole()' in other places.
Didn't make switch by myself because it needs nepomk testing (shouldn't be too hard though).
svn path=/trunk/KDE/kdebase/apps/; revision=692517
Diffstat (limited to 'src/kcategorizedview.cpp')
| -rw-r--r-- | src/kcategorizedview.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kcategorizedview.cpp b/src/kcategorizedview.cpp index 39d047724..e178760ee 100644 --- a/src/kcategorizedview.cpp +++ b/src/kcategorizedview.cpp @@ -33,7 +33,7 @@ #include <kstyle.h> #include "kitemcategorizer.h" -#include "ksortfilterproxymodel.h" +#include "dolphinsortfilterproxymodel.h" class LessThan { @@ -44,7 +44,7 @@ public: CategoryPurpose }; - inline LessThan(const KSortFilterProxyModel *proxyModel, + inline LessThan(const DolphinSortFilterProxyModel *proxyModel, Purpose purpose) : proxyModel(proxyModel) , purpose(purpose) @@ -67,7 +67,7 @@ public: } private: - const KSortFilterProxyModel *proxyModel; + const DolphinSortFilterProxyModel *proxyModel; const Purpose purpose; }; @@ -485,7 +485,7 @@ void KCategorizedView::setModel(QAbstractItemModel *model) QListView::setModel(model); - d->proxyModel = dynamic_cast<KSortFilterProxyModel*>(model); + d->proxyModel = dynamic_cast<DolphinSortFilterProxyModel*>(model); if (d->proxyModel) { |
