┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/dolphinview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/dolphinview.cpp')
-rw-r--r--src/views/dolphinview.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp
index 2f2ff586d..55ab8a27d 100644
--- a/src/views/dolphinview.cpp
+++ b/src/views/dolphinview.cpp
@@ -2342,8 +2342,7 @@ void DolphinView::showLoadingPlaceholder()
m_placeholderLabel->setVisible(true);
#ifndef QT_NO_ACCESSIBILITY
if (QAccessible::isActive()) {
- auto accessibleViewInterface = static_cast<KItemListViewAccessible *>(QAccessible::queryAccessibleInterface(m_view));
- accessibleViewInterface->announceOverallViewState(m_placeholderLabel->text());
+ static_cast<KItemListViewAccessible *>(QAccessible::queryAccessibleInterface(m_view))->announceNewlyLoadedLocation(m_placeholderLabel->text());
}
#endif
}
@@ -2352,6 +2351,11 @@ void DolphinView::updatePlaceholderLabel()
{
m_showLoadingPlaceholderTimer->stop();
if (itemsCount() > 0) {
+#ifndef QT_NO_ACCESSIBILITY
+ if (QAccessible::isActive()) {
+ static_cast<KItemListViewAccessible *>(QAccessible::queryAccessibleInterface(m_view))->announceNewlyLoadedLocation(QString());
+ }
+#endif
m_placeholderLabel->setVisible(false);
return;
}
@@ -2397,8 +2401,7 @@ void DolphinView::updatePlaceholderLabel()
m_placeholderLabel->setVisible(true);
#ifndef QT_NO_ACCESSIBILITY
if (QAccessible::isActive()) {
- auto accessibleViewInterface = static_cast<KItemListViewAccessible *>(QAccessible::queryAccessibleInterface(m_view));
- accessibleViewInterface->announceOverallViewState(m_placeholderLabel->text());
+ static_cast<KItemListViewAccessible *>(QAccessible::queryAccessibleInterface(m_view))->announceNewlyLoadedLocation(m_placeholderLabel->text());
}
#endif
}