MCPcopy Create free account
hub / github.com/LMMS/lmms / linkModel

Method linkModel

src/core/AutomatableModel.cpp:411–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409
410
411void AutomatableModel::linkModel( AutomatableModel* model )
412{
413 if( !m_linkedModels.contains( model ) && model != this )
414 {
415 m_linkedModels.push_back( model );
416 m_hasLinkedModels = true;
417
418 if( !model->hasLinkedModels() )
419 {
420 QObject::connect( this, SIGNAL( dataChanged() ),
421 model, SIGNAL( dataChanged() ), Qt::DirectConnection );
422 }
423 }
424}
425
426
427

Callers 1

linkModelsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected