diff options
| author | Peter Penz <[email protected]> | 2008-10-05 21:17:06 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-10-05 21:17:06 +0000 |
| commit | 2a1c78d3dad73dff28e5cd5899987edc5f5d5780 (patch) | |
| tree | 52abf872cc4f0f5547bc76ff9f2f1de0badf8f7e /src/dolphinview.cpp | |
| parent | 2efa5667f6dcde4429ec259c4ac703b9d99fb4bc (diff) | |
Provide a zoom slider in the status bar. It is configurable whether the zoom slider and/or the space information is shown in the statusbar (the GUI in the settings dialog will be provided during the next week).
svn path=/trunk/KDE/kdebase/apps/; revision=868272
Diffstat (limited to 'src/dolphinview.cpp')
| -rw-r--r-- | src/dolphinview.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index 4e8b565bf..25d0cc199 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -193,6 +193,7 @@ void DolphinView::setMode(Mode mode) return; // the wished mode is already set } + const int oldZoomLevel = m_controller->zoomLevel(); m_mode = mode; deleteView(); @@ -219,6 +220,7 @@ void DolphinView::setMode(Mode mode) } emit modeChanged(); + updateZoomLevel(oldZoomLevel); } DolphinView::Mode DolphinView::mode() const @@ -1102,9 +1104,13 @@ void DolphinView::applyViewProperties(const KUrl& url) const Mode mode = props.viewMode(); if (m_mode != mode) { + const int oldZoomLevel = m_controller->zoomLevel(); + m_mode = mode; createView(); emit modeChanged(); + + updateZoomLevel(oldZoomLevel); } if (itemView() == 0) { createView(); @@ -1220,7 +1226,7 @@ void DolphinView::createView() view->setSelectionMode(QAbstractItemView::ExtendedSelection); - m_previewGenerator = new KFilePreviewGenerator(view, m_proxyModel); + m_previewGenerator = new KFilePreviewGenerator(view); m_previewGenerator->setPreviewShown(m_showPreview); if (DolphinSettings::instance().generalSettings()->showToolTips()) { |
