This commit is contained in:
snt 2024-05-15 18:30:15 +02:00
parent 86567b8bef
commit 14ac167dfb
2 changed files with 4 additions and 6 deletions

View file

@ -8,10 +8,12 @@ FilterBankWidget::FilterBankWidget(QWidget *parent)
{
QHBoxLayout *layout = new QHBoxLayout;
layout->setAlignment(Qt::AlignHCenter);
layout->setContentsMargins(0, 0, 0, 0);
layout->setContentsMargins(0, 2, 0, 2);
layout->setSpacing(0);
this->setStyleSheet("border: 1px solid #5a4855;"
"margin: 0px;"
"margin-top: 2px;"
"margin-bottom: 2px;"
"background-color: #383034;"
);
for (int i = 0; i < 13; i++) {
@ -31,8 +33,6 @@ FilterBankWidget::FilterBankWidget(QWidget *parent)
fb[j]->setRange(0, 10);
} else {
fb[j]->setRange(-50, 50);
fb[j]->setMinimum(-50);
fb[j]->setValue(-8);
}
filterLayout->insertWidget(j, fb[j]);
}
@ -78,5 +78,4 @@ void FilterBankWidget::setValue(int filter, int value)
result = (double)(value / 21.25) - 6.023528412f;
}
fb[filter]->setValue(result);
qDebug() << "filter " << filter << " " << result;
}