Responsive "Effects chain" & "User controller" LEDs (#4297)

This commit is contained in:
Hussam Eddin Alhomsi
2018-04-24 11:25:49 +03:00
committed by GitHub
parent 418bcce402
commit f7a0553e6a
5 changed files with 23 additions and 9 deletions

View File

@@ -188,11 +188,14 @@ ControllerConnectionDialog::ControllerConnectionDialog( QWidget * _parent,
m_userController = new ComboBox( m_userGroupBox, "Controller" );
m_userController->setGeometry( 10, 24, 200, 22 );
for (Controller * c : Engine::getSong()->controllers())
{
m_userController->model()->addItem( c->name() );
}
connect( m_userController->model(), SIGNAL( dataUnchanged() ),
this, SLOT( userSelected() ) );
connect( m_userController->model(), SIGNAL( dataChanged() ),
this, SLOT( userSelected() ) );
// Mapping functions
@@ -389,8 +392,15 @@ void ControllerConnectionDialog::userToggled()
{
m_midiGroupBox->model()->setValue( 0 );
}
}
m_userController->setEnabled( enabled );
void ControllerConnectionDialog::userSelected()
{
m_userGroupBox->model()->setValue( 1 );
userToggled();
}