1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

OP-1118 Fix for QComboBox focus bug in UAVObjectBrowser on Mac OSX

This commit is contained in:
Patrick Huebner 2013-11-16 17:22:51 +11:00
parent 6aa63c6e96
commit b1fd5db4f5

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;