mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 00:11:21 +00:00
Fix the hidden "EnlargeSmallPreviews" option
This option, introduced in99e4eb0f3a
, did not work any more since2069c20021
. CCBUG: 307522
This commit is contained in:
parent
0e49df9214
commit
2277ccaf23
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue