]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/panels/folders/folderspanel.cpp
Port from KIconLoader::drawOverlays to KIconUtils::addOverlays
[dolphin.git] / src / panels / folders / folderspanel.cpp
index 914692000018f8d9b6161667b635db75b1a114c5..19b57308046fcaf471099ea1f9865456db51152b 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
@@ -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"