diff options
| author | Oliver Eftevaag <oliver.eftevaag@qt.io> | 2025-09-24 13:33:20 +0200 |
|---|---|---|
| committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2025-09-29 16:26:03 +0000 |
| commit | 2b855849e68a361a8e7d00e112b03ebd26bd453b (patch) | |
| tree | 86ef4391ee96f38b443d091bdab74db341620df4 /src/quickdialogs/quickdialogsquickimpl/qml/FileDialogDelegateLabel.qml | |
| parent | e6a0060e4abe91380762d159346e7a77f2461140 (diff) | |
FileDialog: Comply with accessibility insights for Windows
Accessibility Insights for Windows is a Windows application that will
check the UI accessibility tree for any potential issues or
anti-patterns.
The tool would complain about the FileDialog having a button without a
name, in the FolderBreadcrumbBar.
The SideBar buttonDelegate would use a Button with an IconImage
contentItem, which the tool would complain about, since the Button
control then wouldn't have a name.
The FileDialogDelegate would also expose every label that it uses to
QAccessible. I'd assume users of screen readers would find it
overwhelming that every delegate has more than 4 different labels that
are all exposed to external assistive technologies. The most important
item to expose is the delegate itself, the sub-labels showing the file
size and last modified date can probably be ignored.
Pick-to: 6.8
Change-Id: Iad3fbf4a4178934214028214947506eb9d8c2651
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
(cherry picked from commit ab83b2d2d34095bd56ca0e9e044374d314277321)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/quickdialogs/quickdialogsquickimpl/qml/FileDialogDelegateLabel.qml')
| -rw-r--r-- | src/quickdialogs/quickdialogsquickimpl/qml/FileDialogDelegateLabel.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/quickdialogs/quickdialogsquickimpl/qml/FileDialogDelegateLabel.qml b/src/quickdialogs/quickdialogsquickimpl/qml/FileDialogDelegateLabel.qml index a28d9dea08..e285af8b28 100644 --- a/src/quickdialogs/quickdialogsquickimpl/qml/FileDialogDelegateLabel.qml +++ b/src/quickdialogs/quickdialogsquickimpl/qml/FileDialogDelegateLabel.qml @@ -40,6 +40,8 @@ Item { text: root.delegate.fileName color: root.delegate.icon.color y: (parent.height - height) / 2 + + Accessible.ignored: true } } @@ -58,12 +60,16 @@ Item { } font.pixelSize: root.delegate.font.pixelSize * 0.75 color: root.fileDetailRowTextColor + + Accessible.ignored: true } Label { text: Qt.formatDateTime(root.delegate.fileModified) font.pixelSize: root.delegate.font.pixelSize * 0.75 color: root.fileDetailRowTextColor x: parent.width - width + + Accessible.ignored: true } } } |
