┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/dolphinitemlistcontainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/dolphinitemlistcontainer.cpp')
-rw-r--r--src/views/dolphinitemlistcontainer.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/views/dolphinitemlistcontainer.cpp b/src/views/dolphinitemlistcontainer.cpp
index 9e7a15f74..d28aa363f 100644
--- a/src/views/dolphinitemlistcontainer.cpp
+++ b/src/views/dolphinitemlistcontainer.cpp
@@ -52,6 +52,7 @@ DolphinItemListContainer::DolphinItemListContainer(KDirLister* dirLister,
m_fileItemListView->setEnabledSelectionToggles(GeneralSettings::showSelectionToggle());
controller()->setView(m_fileItemListView);
+ updateAutoActivationDelay();
updateFont();
updateGridSize();
}
@@ -174,6 +175,10 @@ void DolphinItemListContainer::refresh()
ViewModeSettings settings(viewMode());
settings.readConfig();
+ beginTransaction();
+
+ m_fileItemListView->setEnabledSelectionToggles(GeneralSettings::showSelectionToggle());
+ updateAutoActivationDelay();
updateFont();
updateGridSize();
@@ -183,6 +188,8 @@ void DolphinItemListContainer::refresh()
<< "imagethumbnail"
<< "jpegthumbnail");
m_fileItemListView->setEnabledPlugins(plugins);
+
+ endTransaction();
}
void DolphinItemListContainer::updateGridSize()
@@ -247,6 +254,12 @@ void DolphinItemListContainer::updateFont()
m_fileItemListView->setStyleOption(styleOption);
}
+void DolphinItemListContainer::updateAutoActivationDelay()
+{
+ const int delay = GeneralSettings::autoExpandFolders() ? 750 : -1;
+ controller()->setAutoActivationDelay(delay);
+}
+
ViewModeSettings::ViewMode DolphinItemListContainer::viewMode() const
{
ViewModeSettings::ViewMode mode;