]> git.lyx.org Git - features.git/commitdiff
Accessibility of document class combo box (#10035)
authorGuillaume Munch <gm@lyx.org>
Fri, 8 Jul 2016 10:29:26 +0000 (12:29 +0200)
committerGuillaume Munch <gm@lyx.org>
Fri, 8 Jul 2016 11:27:06 +0000 (13:27 +0200)
* Access it with tab

* Access it with the accelerator from the title of the group

src/frontends/qt4/CategorizedCombo.cpp
src/frontends/qt4/ui/LaTeXUi.ui

index b52172d95099fbfed4d1942c2c761556adf71446..8e4fc64f4596f07bad7d6c9f17118c9febbf2126 100644 (file)
@@ -348,7 +348,6 @@ CategorizedCombo::CategorizedCombo(QWidget * parent)
        : QComboBox(parent), d(new Private(this))
 {
        setSizeAdjustPolicy(QComboBox::AdjustToContents);
-       setFocusPolicy(Qt::ClickFocus);
        setMinimumWidth(sizeHint().width());
        setMaxVisibleItems(100);
 
index 03020634b77380611498e50e97c696444d46db0f..6bac8df1b327c68dea0cfcd3c304ab475bc99be4 100644 (file)
@@ -1,3 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
 <ui version="4.0">
  <class>LaTeXUi</class>
  <widget class="QWidget" name="LaTeXUi">
  </widget>
  <customwidgets>
   <customwidget>
-   <class>CategorizedCombo</class>
+   <class>lyx::frontend::CategorizedCombo</class>
    <extends>QComboBox</extends>
    <header>CategorizedCombo.h</header>
   </customwidget>
     </hint>
    </hints>
   </connection>
+  <connection>
+   <sender>groupBox</sender>
+   <signal>clicked()</signal>
+   <receiver>classCO</receiver>
+   <slot>setFocus()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>160</x>
+     <y>33</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>160</x>
+     <y>47</y>
+    </hint>
+   </hints>
+  </connection>
  </connections>
 </ui>