cleaning
This commit is contained in:
parent
86567b8bef
commit
14ac167dfb
2 changed files with 4 additions and 6 deletions
|
@ -13,7 +13,7 @@ AudioLayerWidget::AudioLayerWidget(QWidget *parent, int layer):
|
||||||
|
|
||||||
QVBoxLayout *playback = new QVBoxLayout;
|
QVBoxLayout *playback = new QVBoxLayout;
|
||||||
m_folderValue = new ClickableLabel;
|
m_folderValue = new ClickableLabel;
|
||||||
m_folderValue->setMaximumWidth(160);
|
m_folderValue->setMaximumWidth(300);
|
||||||
m_folderValue->setAlignment(Qt::AlignLeft);
|
m_folderValue->setAlignment(Qt::AlignLeft);
|
||||||
m_folderValue->setStyleSheet(
|
m_folderValue->setStyleSheet(
|
||||||
"color: white;"
|
"color: white;"
|
||||||
|
@ -53,7 +53,6 @@ AudioLayerWidget::AudioLayerWidget(QWidget *parent, int layer):
|
||||||
m_progressTime->setReadOnly(true);
|
m_progressTime->setReadOnly(true);
|
||||||
m_progressTime->setButtonSymbols(QAbstractSpinBox::NoButtons);
|
m_progressTime->setButtonSymbols(QAbstractSpinBox::NoButtons);
|
||||||
m_progressTime->setMinimumWidth(80);
|
m_progressTime->setMinimumWidth(80);
|
||||||
//m_progressTime->setMaximumWidth(80);
|
|
||||||
m_progressTime->setFocusPolicy(Qt::NoFocus);
|
m_progressTime->setFocusPolicy(Qt::NoFocus);
|
||||||
m_progressTime->setAlignment(Qt::AlignHCenter);
|
m_progressTime->setAlignment(Qt::AlignHCenter);
|
||||||
m_progressTime->setContentsMargins(0,0,0,0);
|
m_progressTime->setContentsMargins(0,0,0,0);
|
||||||
|
|
|
@ -8,10 +8,12 @@ FilterBankWidget::FilterBankWidget(QWidget *parent)
|
||||||
{
|
{
|
||||||
QHBoxLayout *layout = new QHBoxLayout;
|
QHBoxLayout *layout = new QHBoxLayout;
|
||||||
layout->setAlignment(Qt::AlignHCenter);
|
layout->setAlignment(Qt::AlignHCenter);
|
||||||
layout->setContentsMargins(0, 0, 0, 0);
|
layout->setContentsMargins(0, 2, 0, 2);
|
||||||
layout->setSpacing(0);
|
layout->setSpacing(0);
|
||||||
this->setStyleSheet("border: 1px solid #5a4855;"
|
this->setStyleSheet("border: 1px solid #5a4855;"
|
||||||
"margin: 0px;"
|
"margin: 0px;"
|
||||||
|
"margin-top: 2px;"
|
||||||
|
"margin-bottom: 2px;"
|
||||||
"background-color: #383034;"
|
"background-color: #383034;"
|
||||||
);
|
);
|
||||||
for (int i = 0; i < 13; i++) {
|
for (int i = 0; i < 13; i++) {
|
||||||
|
@ -31,8 +33,6 @@ FilterBankWidget::FilterBankWidget(QWidget *parent)
|
||||||
fb[j]->setRange(0, 10);
|
fb[j]->setRange(0, 10);
|
||||||
} else {
|
} else {
|
||||||
fb[j]->setRange(-50, 50);
|
fb[j]->setRange(-50, 50);
|
||||||
fb[j]->setMinimum(-50);
|
|
||||||
fb[j]->setValue(-8);
|
|
||||||
}
|
}
|
||||||
filterLayout->insertWidget(j, fb[j]);
|
filterLayout->insertWidget(j, fb[j]);
|
||||||
}
|
}
|
||||||
|
@ -78,5 +78,4 @@ void FilterBankWidget::setValue(int filter, int value)
|
||||||
result = (double)(value / 21.25) - 6.023528412f;
|
result = (double)(value / 21.25) - 6.023528412f;
|
||||||
}
|
}
|
||||||
fb[filter]->setValue(result);
|
fb[filter]->setValue(result);
|
||||||
qDebug() << "filter " << filter << " " << result;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue