// 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
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);
m_controller->view()->scrollToItem(index);
}
+
+#include "moc_folderspanel.cpp"