Dont show combo box on non-enum items
This commit is contained in:
parent
be303aa851
commit
cb05c2237e
1 changed files with 3 additions and 0 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue