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;) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -35,7 +35,7 @@ libreMediaServerAudioUi::libreMediaServerAudioUi(QWidget *parent)
 | 
			
		|||
    topWidget->setContentsMargins(0, 0, 0, 0);
 | 
			
		||||
    addDockWidget(Qt::TopDockWidgetArea, topWidget);
 | 
			
		||||
    connect(ui.actionLaunch_OLA_Setup, SIGNAL(triggered()), this, SLOT(olasetup()));
 | 
			
		||||
    this->setContentsMargins(5, 5, 5, 5);
 | 
			
		||||
    this->setContentsMargins(3, 3, 3, 3);
 | 
			
		||||
    this->setStyleSheet(
 | 
			
		||||
                "color: white;"
 | 
			
		||||
                "background-color: #4f4048;"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -165,6 +165,15 @@ ma_result MiniAudioEngine::setNodeGraph(int id) {
 | 
			
		|||
        result = this->createFilterBank(id, i);
 | 
			
		||||
        i++;
 | 
			
		||||
    }
 | 
			
		||||
    //ma_node_graph *ng = ma_engine_get_node_graph(&m_engine[id]);
 | 
			
		||||
    //ma_node *endpoint = ma_engine_get_endpoint(&m_engine[id]);
 | 
			
		||||
    for (uint i = 0; i < m_layersQty; i++) {
 | 
			
		||||
        result = ma_node_attach_output_bus(&m_filterBank[0][i].output, 0, &m_filterBank[1][i].output, 0);
 | 
			
		||||
        if (result != MA_SUCCESS) {
 | 
			
		||||
            cout << "ERROR " << result << ": Failed to attach aux send." << endl;
 | 
			
		||||
            //return result;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    return (result);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue