diff options
| author | David Faure <[email protected]> | 2007-03-27 20:41:57 +0000 |
|---|---|---|
| committer | David Faure <[email protected]> | 2007-03-27 20:41:57 +0000 |
| commit | c5534a5f93c51180849ff269aa9a792938ddcd2f (patch) | |
| tree | 2bcc1ab58b6dd1136e6e777aad2aaf96ccf3a739 /src/dolphinview.cpp | |
| parent | c9eec20c3d8d8fa73364681389e5c682fbd3dc20 (diff) | |
Hide the HistoryElem class from the public API of UrlNavigator
svn path=/trunk/KDE/kdebase/apps/; revision=647276
Diffstat (limited to 'src/dolphinview.cpp')
| -rw-r--r-- | src/dolphinview.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index 88a2cff80..519189e9a 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -781,12 +781,13 @@ void DolphinView::showPreview(const KFileItem* item, const QPixmap& pixmap) void DolphinView::restoreContentsPos() { - UrlNavigator::HistoryElem historyItem = m_urlNavigator->currentHistoryItem(); - if (!historyItem.url().isEmpty()) { + KUrl currentUrl = m_urlNavigator->url(); + if (!currentUrl.isEmpty()) { QAbstractItemView* view = itemView(); - // TODO: view->setCurrentItem(historyItem.currentFileName()); - view->horizontalScrollBar()->setValue(historyItem.contentsX()); - view->verticalScrollBar()->setValue(historyItem.contentsY()); + // TODO: view->setCurrentItem(m_urlNavigator->currentFileName()); + QPoint pos = m_urlNavigator->savedPosition(); + view->horizontalScrollBar()->setValue(pos.x()); + view->verticalScrollBar()->setValue(pos.y()); } } |
