| 28 | } |
| 29 | |
| 30 | void SendButtonIndicator::mousePressEvent( QMouseEvent * e ) |
| 31 | { |
| 32 | FxMixer * mix = Engine::fxMixer(); |
| 33 | int from = m_mv->currentFxLine()->channelIndex(); |
| 34 | int to = m_parent->channelIndex(); |
| 35 | FloatModel * sendModel = mix->channelSendModel(from, to); |
| 36 | if( sendModel == NULL ) |
| 37 | { |
| 38 | // not sending. create a mixer send. |
| 39 | mix->createChannelSend( from, to ); |
| 40 | } |
| 41 | else |
| 42 | { |
| 43 | // sending. delete the mixer send. |
| 44 | mix->deleteChannelSend( from, to ); |
| 45 | } |
| 46 | |
| 47 | m_mv->updateFxLine(m_parent->channelIndex()); |
| 48 | updateLightStatus(); |
| 49 | } |
| 50 | |
| 51 | FloatModel * SendButtonIndicator::getSendModel() |
| 52 | { |
nothing calls this directly
no test coverage detected