Dont show combo box on non-enum items

This commit is contained in:
Carl Philipp Klemm 2026-04-17 18:31:42 +02:00
parent be303aa851
commit cb05c2237e

View file

@ -21,11 +21,13 @@ ItemWidget::ItemWidget(std::weak_ptr<Item> item, bool noGroupEdit, QWidget *pare
{
ui->horizontalSpacer->changeSize(0,0);
ui->checkBox->hide();
ui->comboBox->hide();
}
else if(workingItem->getValueType() == ITEM_VALUE_NO_VALUE)
{
ui->checkBox->hide();
ui->slider->hide();
ui->comboBox->hide();
}
else if(workingItem->getValueType() == ITEM_VALUE_ENUM)
{
@ -40,6 +42,7 @@ ItemWidget::ItemWidget(std::weak_ptr<Item> item, bool noGroupEdit, QWidget *pare
else
{
ui->slider->hide();
ui->comboBox->hide();
}
ui->checkBox->setChecked(workingItem->getValue());