diff options
| author | Frank Reininghaus <[email protected]> | 2012-10-03 10:14:20 +0200 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2012-10-03 10:14:20 +0200 |
| commit | 2277ccaf2369fccf7346dc931c6ff1a86c5b7d3b (patch) | |
| tree | 26e4eb5617a21ca257003f133798fb1d220b5f34 /src/views/dolphinview.cpp | |
| parent | 0e49df921450da38a94b4cf10837c67b8e968ae9 (diff) | |
Fix the hidden "EnlargeSmallPreviews" option
This option, introduced in 99e4eb0f3a58c53277b099114a5fd8945937fb9a, did
not work any more since 2069c200211c93e401c3d19850f41eade09d64be.
CCBUG: 307522
Diffstat (limited to 'src/views/dolphinview.cpp')
| -rw-r--r-- | src/views/dolphinview.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index f0dc3caba..624aa185d 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -122,7 +122,6 @@ DolphinView::DolphinView(const KUrl& url, QWidget* parent) : m_model = new KFileItemModel(this); m_view = new DolphinItemListView(); m_view->setEnabledSelectionToggles(GeneralSettings::showSelectionToggle()); - m_view->setEnlargeSmallPreviews(GeneralSettings::enlargeSmallPreviews()); m_view->setVisibleRoles(QList<QByteArray>() << "text"); applyModeToView(); @@ -130,6 +129,10 @@ DolphinView::DolphinView(const KUrl& url, QWidget* parent) : const int delay = GeneralSettings::autoExpandFolders() ? 750 : -1; controller->setAutoActivationDelay(delay); + // The EnlargeSmallPreviews setting can only be changed after the model + // has been set in the view by KItemListController. + m_view->setEnlargeSmallPreviews(GeneralSettings::enlargeSmallPreviews()); + m_container = new KItemListContainer(controller, this); m_container->installEventFilter(this); setFocusProxy(m_container); |
