From fae8ba471b0adb917f4edd1a99bca47fdaea0169 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 9 Jan 2011 13:58:35 +0000 Subject: Encapsulate the creation and handling of the directory lister, the model and proxy model to DolphinView. By this it will be easier later to replace the traditional QAbstractItemViews by any kind of other implementation (e.g. based on QGraphicsView/QML). svn path=/trunk/KDE/kdebase/apps/; revision=1213189 --- src/tests/dolphindetailsviewtest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tests/dolphindetailsviewtest.cpp') diff --git a/src/tests/dolphindetailsviewtest.cpp b/src/tests/dolphindetailsviewtest.cpp index 36cdb3333..49fbb629f 100644 --- a/src/tests/dolphindetailsviewtest.cpp +++ b/src/tests/dolphindetailsviewtest.cpp @@ -60,8 +60,8 @@ private slots: private: QModelIndex proxyModelIndexForUrl(const KUrl& url) const { - const QModelIndex index = m_dolphinModel->indexForUrl(url); - return m_proxyModel->mapFromSource(index); + const QModelIndex index = m_view->m_viewAccessor.m_dolphinModel->indexForUrl(url); + return m_view->m_viewAccessor.m_proxyModel->mapFromSource(index); } DolphinDetailsView* m_detailsView; -- cgit v1.3