X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/38c34eeca315c7be58e65d4d3fb72aaf7b866719..cebcf8db:/src/panels/folders/folderspanel.cpp diff --git a/src/panels/folders/folderspanel.cpp b/src/panels/folders/folderspanel.cpp index 914692000..19b573080 100644 --- a/src/panels/folders/folderspanel.cpp +++ b/src/panels/folders/folderspanel.cpp @@ -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()); view->setSupportsItemExpanding(true); // Set the opacity to 0 initially. The opacity will be increased after the loading of the initial tree @@ -162,6 +161,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 +368,5 @@ void FoldersPanel::updateCurrentItem(int index) m_controller->view()->scrollToItem(index); } + +#include "moc_folderspanel.cpp"