Gui: fix property enumeration editor initialization

This commit is contained in:
Zheng, Lei
2022-02-12 19:22:01 +08:00
committed by Uwe
parent 1433ff166d
commit 801ece560e

View File

@@ -2951,6 +2951,7 @@ QWidget* PropertyEnumItem::createEditor(QWidget* parent, const QObject* receiver
QComboBox *cb = new QComboBox(parent);
cb->setFrame(false);
cb->setDisabled(isReadOnly());
cb->addItems(commonModes);
QObject::connect(cb, SIGNAL(activated(int)), receiver, method);
return cb;
}