16        if (f == 
nullptr || f->constDataPtr() == 
nullptr) {
 
   20        QHBoxLayout* layout = 
new QHBoxLayout;
 
   21        layout->setContentsMargins(0, 0, 0, 0);
 
   22        layout->setSpacing(0);
 
   24        QLabel* name = 
new QLabel();
 
   25        name->setFixedHeight(24);
 
   26        name->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
 
   28        layout->addWidget(name, 0);
 
   30        QComboBox* combox = 
new QComboBox;
 
   31        combox->setMaximumWidth(256);
 
   33        auto& enums = f->constDataPtr()->enumMap();
 
   39            combox->addItem(QString::fromStdString(e.second));
 
   41            if (e.first == f->constDataPtr()->currentKey()) {
 
   48        combox->setCurrentIndex(curIndex);
 
   50        layout->addWidget(combox, 1);
 
   52        this->setLayout(layout);