From edd4726cf596ba6e9ae1003642030ee7627e4743 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 18 Apr 2017 14:57:16 +0200 Subject: [PATCH] #1408 Initialize custom combo box with StrongFocus --- Fwk/AppFwk/cafUserInterface/cafPdmUiComboBoxEditor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Fwk/AppFwk/cafUserInterface/cafPdmUiComboBoxEditor.cpp b/Fwk/AppFwk/cafUserInterface/cafPdmUiComboBoxEditor.cpp index 0592f95fdb..ce48122c9e 100644 --- a/Fwk/AppFwk/cafUserInterface/cafPdmUiComboBoxEditor.cpp +++ b/Fwk/AppFwk/cafUserInterface/cafPdmUiComboBoxEditor.cpp @@ -155,6 +155,8 @@ protected: QWidget* PdmUiComboBoxEditor::createEditorWidget(QWidget * parent) { m_comboBox = new CustomQComboBox(parent); + m_comboBox->setFocusPolicy(Qt::StrongFocus); + connect(m_comboBox, SIGNAL(activated(int)), this, SLOT(slotIndexActivated(int))); return m_comboBox;