1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

Merge remote-tracking branch 'origin/patrickh/OP-1118_QComboBox_Focus_issue' into next

This commit is contained in:
Fredrik Arvidsson 2013-12-01 10:39:41 +01:00
commit 2fce485e26

View File

@ -114,7 +114,8 @@ public:
QWidget *createEditor(QWidget *parent)
{
QComboBox *editor = new QComboBox(parent);
// Setting ClickFocus lets the ComboBox stay open on Mac OSX.
editor->setFocusPolicy(Qt::ClickFocus);
foreach(QString option, m_enumOptions)
editor->addItem(option);
return editor;