void InstrumentParameterPanel::setSelectedInstrument(Instrument *instrument) { m_selectedInstrument = instrument; if (instrument) { // Make instrument tell us if it gets destroyed. connect(instrument, SIGNAL(destroyed()), this, SLOT(slotInstrumentGone())); } }
InstrumentAliasButton::InstrumentAliasButton(QWidget *parent, Instrument *instrument) : QPushButton(parent), m_instrument(instrument) { connect(this, SIGNAL(clicked()), this, SLOT(slotPressed())); if (instrument) { // Make instrument tell us if it gets destroyed. connect(instrument, SIGNAL(destroyed()), this, SLOT(slotInstrumentGone())); } }