mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Fix accessibility ancestor tree for folders panel
This is a followup to 549fad2dae
.
That previous commit made sure that the accessibility tree for
Dolphin's main view was complete even though the view had no
parent by explicitly setting an accessible parent.
The folders panel also has a view though and that previous commit
did not contain an explicit call to also set an accessible parent
for it. This commit rectifies that.
Fixes a sanity check & crash in the debug build.
Belongs to Dolphin issue #47.
This commit is contained in:
parent
fafcb1c1dc
commit
2ad0fa6e87
|
@ -161,6 +161,9 @@ void FoldersPanel::showEvent(QShowEvent *event)
|
||||||
connect(m_controller, &KItemListController::itemDropEvent, this, &FoldersPanel::slotItemDropEvent);
|
connect(m_controller, &KItemListController::itemDropEvent, this, &FoldersPanel::slotItemDropEvent);
|
||||||
|
|
||||||
KItemListContainer *container = new KItemListContainer(m_controller, this);
|
KItemListContainer *container = new KItemListContainer(m_controller, this);
|
||||||
|
#ifndef QT_NO_ACCESSIBILITY
|
||||||
|
view->setAccessibleParentsObject(container);
|
||||||
|
#endif
|
||||||
container->setEnabledFrame(false);
|
container->setEnabledFrame(false);
|
||||||
|
|
||||||
QVBoxLayout *layout = new QVBoxLayout(this);
|
QVBoxLayout *layout = new QVBoxLayout(this);
|
||||||
|
|
Loading…
Reference in a new issue