Accessibility of document class combo box (#10035)

* Access it with tab

* Access it with the accelerator from the title of the group
This commit is contained in:
Guillaume Munch 2016-07-08 12:29:26 +02:00
parent 396b55dd51
commit 3e6df97963
2 changed files with 18 additions and 2 deletions

View File

@ -348,7 +348,6 @@ CategorizedCombo::CategorizedCombo(QWidget * parent)
: QComboBox(parent), d(new Private(this)) : QComboBox(parent), d(new Private(this))
{ {
setSizeAdjustPolicy(QComboBox::AdjustToContents); setSizeAdjustPolicy(QComboBox::AdjustToContents);
setFocusPolicy(Qt::ClickFocus);
setMinimumWidth(sizeHint().width()); setMinimumWidth(sizeHint().width());
setMaxVisibleItems(100); setMaxVisibleItems(100);

View File

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>LaTeXUi</class> <class>LaTeXUi</class>
<widget class="QWidget" name="LaTeXUi"> <widget class="QWidget" name="LaTeXUi">
@ -211,7 +212,7 @@
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget> <customwidget>
<class>CategorizedCombo</class> <class>lyx::frontend::CategorizedCombo</class>
<extends>QComboBox</extends> <extends>QComboBox</extends>
<header>CategorizedCombo.h</header> <header>CategorizedCombo.h</header>
</customwidget> </customwidget>
@ -250,5 +251,21 @@
</hint> </hint>
</hints> </hints>
</connection> </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> </connections>
</ui> </ui>