#1408 Initialize custom combo box with StrongFocus

This commit is contained in:
Magne Sjaastad 2017-04-18 14:57:16 +02:00
parent c6c1af06e3
commit edd4726cf5

View File

@ -155,6 +155,8 @@ protected:
QWidget* PdmUiComboBoxEditor::createEditorWidget(QWidget * parent) QWidget* PdmUiComboBoxEditor::createEditorWidget(QWidget * parent)
{ {
m_comboBox = new CustomQComboBox(parent); m_comboBox = new CustomQComboBox(parent);
m_comboBox->setFocusPolicy(Qt::StrongFocus);
connect(m_comboBox, SIGNAL(activated(int)), this, SLOT(slotIndexActivated(int))); connect(m_comboBox, SIGNAL(activated(int)), this, SLOT(slotIndexActivated(int)));
return m_comboBox; return m_comboBox;