diff options
| author | Rafael Fernández López <[email protected]> | 2007-09-17 04:02:17 +0000 |
|---|---|---|
| committer | Rafael Fernández López <[email protected]> | 2007-09-17 04:02:17 +0000 |
| commit | c8072005fada01d772595ec64adca449134f421e (patch) | |
| tree | 2bbcad6b43218569c813ef888bec3ad009335b69 /src/dolphinpart.cpp | |
| parent | 231436769d037a83afbf57fedea167b6fb9a5ad4 (diff) | |
Create the new architecture for KCategorizedView. Now DolphinModel is created, inheriting KDirModel for returning valid data for the role of the category of
an item. DolphinSortFilterProxyModel implements now methods lessThanCategoryMethod and lessThanGeneralMethod from KCategorizedSortFilterProxyModel.
The only thing that needs to be adapted is the keyboard navigation on the KCategorizedView.
CCMAIL: [email protected]
svn path=/trunk/KDE/kdebase/apps/; revision=713319
Diffstat (limited to 'src/dolphinpart.cpp')
| -rw-r--r-- | src/dolphinpart.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp index 1bc1edac0..bb9a1ea59 100644 --- a/src/dolphinpart.cpp +++ b/src/dolphinpart.cpp @@ -20,9 +20,9 @@ #include "dolphinpart.h" #include "dolphinsortfilterproxymodel.h" #include "dolphinview.h" +#include "dolphinmodel.h" #include <kdirlister.h> -#include <kdirmodel.h> #include <kmessagebox.h> #include <kparts/browserextension.h> #include <kparts/genericfactory.h> @@ -53,16 +53,16 @@ DolphinPart::DolphinPart(QWidget* parentWidget, QObject* parent, const QStringLi connect(m_dirLister, SIGNAL(completed(KUrl)), this, SLOT(slotCompleted(KUrl))); connect(m_dirLister, SIGNAL(canceled(KUrl)), this, SLOT(slotCanceled(KUrl))); - m_dirModel = new KDirModel(this); - m_dirModel->setDirLister(m_dirLister); + m_dolphinModel = new DolphinModel(this); + m_dolphinModel->setDirLister(m_dirLister); m_proxyModel = new DolphinSortFilterProxyModel(this); - m_proxyModel->setSourceModel(m_dirModel); + m_proxyModel->setSourceModel(m_dolphinModel); m_view = new DolphinView(parentWidget, KUrl(), m_dirLister, - m_dirModel, + m_dolphinModel, m_proxyModel); setWidget(m_view); |
