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))
{
setSizeAdjustPolicy(QComboBox::AdjustToContents);
setFocusPolicy(Qt::ClickFocus);
setMinimumWidth(sizeHint().width());
setMaxVisibleItems(100);

View File

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