summaryrefslogtreecommitdiffstats
path: root/src/widgets/accessible/complexwidgets.cpp
diff options
context:
space:
mode:
authorMikolaj Boc <mikolaj.boc@qt.io>2022-12-14 17:40:22 +0100
committerMikolaj Boc <mikolaj.boc@qt.io>2022-12-16 18:21:57 +0100
commitb53dcb4e67a4f630c8108085967a7842b4d5d95e (patch)
treee4a4b41dad9c983a02fe65f28257f062d99a80ad /src/widgets/accessible/complexwidgets.cpp
parentc672f148dbf179f2e0ac94dfac7d329d50a3e4a3 (diff)
Treat the accessible non-editable combobox as ButtonMenu on macOS
Following the system design, we should treat the non-editable combobox as a ButtonMenu. All of the similar elements in macOS's UI are called ButtonMenu with the screen reader. This fixes the case when ctrl+option+space does not invoke the popup menu with options. Fixes: QTBUG-106162 Change-Id: I0b439c56d72d1fe5b32a60eb7c001f863c00adc1 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/widgets/accessible/complexwidgets.cpp')
-rw-r--r--src/widgets/accessible/complexwidgets.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/accessible/complexwidgets.cpp b/src/widgets/accessible/complexwidgets.cpp
index df81713d72..624090a2af 100644
--- a/src/widgets/accessible/complexwidgets.cpp
+++ b/src/widgets/accessible/complexwidgets.cpp
@@ -366,6 +366,7 @@ QAccessible::State QAccessibleComboBox::state() const
s.expandable = true;
s.expanded = isValid() && comboBox()->view()->isVisible();
+ s.editable = comboBox()->isEditable();
return s;
}