style bypass checkbox
This commit is contained in:
parent
27c7969df3
commit
7aced09a02
3 changed files with 29 additions and 5 deletions
|
|
@ -10,10 +10,10 @@ FilterBankWidget::FilterBankWidget(QWidget *parent)
|
|||
layout->setAlignment(Qt::AlignHCenter);
|
||||
layout->setContentsMargins(0, 2, 0, 2);
|
||||
layout->setSpacing(0);
|
||||
this->setStyleSheet("border: 1px solid #5a4855;"
|
||||
this->setStyleSheet("border: 2px solid #5a4855;"
|
||||
"margin: 0px;"
|
||||
"margin-top: 2px;"
|
||||
"margin-bottom: 2px;"
|
||||
"margin-top: 3px;"
|
||||
"margin-bottom: 3px;"
|
||||
"background-color: #383034;"
|
||||
);
|
||||
for (int i = 0; i < 13; i++) {
|
||||
|
|
@ -25,8 +25,23 @@ FilterBankWidget::FilterBankWidget(QWidget *parent)
|
|||
QVBoxLayout *master = new QVBoxLayout;
|
||||
fb[0]->setRange(0, 500);
|
||||
m_bypass = new QCheckBox;
|
||||
connect(m_bypass, SIGNAL(stateChanged(int)), this, SLOT(bypassChanged(int)));
|
||||
master->addWidget(m_bypass);
|
||||
m_bypass->setText("Bypass");
|
||||
m_bypass->setStyleSheet("QCheckBox { border: 2px solid #2a0825;"
|
||||
"text-align: left top;"
|
||||
"margin: 0px;"
|
||||
"background-color: #885074;"
|
||||
"font-size: 7px;}"
|
||||
"QCheckBox::indicator { subcontrol-position: right top;"
|
||||
"width: 30px;"
|
||||
"height: 30px;"
|
||||
"background-color: gray;"
|
||||
"border-radius: 15px;"
|
||||
"border-style: solid;"
|
||||
"border-width: 1px;"
|
||||
"border-color: white white black black;"
|
||||
);
|
||||
connect(m_bypass, SIGNAL(stateChanged(int)), this, SLOT(bypassChanged(int)));
|
||||
master->addWidget(fb[0]);
|
||||
layout->addLayout(master);
|
||||
for (int i = 1; i < 13;) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue