void QVBoxPlotModelMapper::setModel(QAbstractItemModel *model) { if (model != QBoxPlotModelMapper::model()) { QBoxPlotModelMapper::setModel(model); emit modelReplaced(); } }
AudioCallbackPlayTarget::AudioCallbackPlayTarget(AudioCallbackPlaySource *source) : m_source(source), m_outputGain(1.0) { if (m_source) { connect(m_source, SIGNAL(modelReplaced()), this, SLOT(sourceModelReplaced())); } }
void TimeInstantLayer::setModel(SparseOneDimensionalModel *model) { if (m_model == model) return; m_model = model; connectSignals(m_model); #ifdef DEBUG_TIME_INSTANT_LAYER std::cerr << "TimeInstantLayer::setModel(" << model << ")" << std::endl; #endif if (m_model && m_model->getRDFTypeURI().endsWith("Segment")) { setPlotStyle(PlotSegmentation); } emit modelReplaced(); }