]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/panels/folders/folderspanel.cpp
Merge remote-tracking branch 'fork/work/zakharafoniam/useful-groups'
[dolphin.git] / src / panels / folders / folderspanel.cpp
index 914692000018f8d9b6161667b635db75b1a114c5..e375f2ce51fc84603020becc0e78b2fcff02b213 100644 (file)
@@ -131,7 +131,6 @@ void FoldersPanel::showEvent(QShowEvent *event)
         // This assures that no performance and memory overhead is given when the folders panel is not
         // used at all and stays invisible.
         KFileItemListView *view = new KFileItemListView();
-        view->setScanDirectories(false);
         view->setWidgetCreator(new KItemListWidgetCreator<FoldersItemListWidget>());
         view->setSupportsItemExpanding(true);
         // Set the opacity to 0 initially. The opacity will be increased after the loading of the initial tree
@@ -152,7 +151,6 @@ void FoldersPanel::showEvent(QShowEvent *event)
         m_controller->setSelectionBehavior(KItemListController::SingleSelection);
         m_controller->setAutoActivationBehavior(KItemListController::ExpansionOnly);
         m_controller->setMouseDoubleClickAction(KItemListController::ActivateAndExpandItem);
-        m_controller->setAutoActivationDelay(750);
         m_controller->setSingleClickActivationEnforced(true);
 
         connect(m_controller, &KItemListController::itemActivated, this, &FoldersPanel::slotItemActivated);
@@ -162,6 +160,9 @@ void FoldersPanel::showEvent(QShowEvent *event)
         connect(m_controller, &KItemListController::itemDropEvent, this, &FoldersPanel::slotItemDropEvent);
 
         KItemListContainer *container = new KItemListContainer(m_controller, this);
+#ifndef QT_NO_ACCESSIBILITY
+        view->setAccessibleParentsObject(container);
+#endif
         container->setEnabledFrame(false);
 
         QVBoxLayout *layout = new QVBoxLayout(this);
@@ -366,3 +367,5 @@ void FoldersPanel::updateCurrentItem(int index)
 
     m_controller->view()->scrollToItem(index);
 }
+
+#include "moc_folderspanel.cpp"