┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/tests/dolphindetailsviewtest.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2011-01-09 13:58:35 +0000
committerPeter Penz <[email protected]>2011-01-09 13:58:35 +0000
commitfae8ba471b0adb917f4edd1a99bca47fdaea0169 (patch)
treef7aaa90e0d4414867adb82781088b48242a0b969 /src/tests/dolphindetailsviewtest.cpp
parent58ea012256a752fb803a462c0ff025a4de4b5dbf (diff)
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
Diffstat (limited to 'src/tests/dolphindetailsviewtest.cpp')
-rw-r--r--src/tests/dolphindetailsviewtest.cpp4
1 files changed, 2 insertions, 2 deletions
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;