diff options
| author | Peter Penz <[email protected]> | 2011-01-09 13:58:35 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-01-09 13:58:35 +0000 |
| commit | fae8ba471b0adb917f4edd1a99bca47fdaea0169 (patch) | |
| tree | f7aaa90e0d4414867adb82781088b48242a0b969 /src/tests/dolphindetailsviewtest.cpp | |
| parent | 58ea012256a752fb803a462c0ff025a4de4b5dbf (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.cpp | 4 |
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; |
