mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
OP-1118 Fix for QComboBox focus bug in UAVObjectBrowser on Mac OSX
This commit is contained in:
parent
6aa63c6e96
commit
b1fd5db4f5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user