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

Method setModel

src/gui/ModelView.cpp:51–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50
51void ModelView::setModel( Model* model, bool isOldModelValid )
52{
53 if( isOldModelValid && m_model != NULL )
54 {
55 if( m_model->isDefaultConstructed() )
56 {
57 delete m_model;
58 }
59 else
60 {
61 m_model->disconnect( widget() );
62 }
63 }
64
65 m_model = model;
66
67 doConnections();
68
69 widget()->update();
70
71 modelChanged();
72}
73
74
75

Callers 15

createViewMethod · 0.45
modelChangedMethod · 0.45
setupWidgetMethod · 0.45
setupWidgetMethod · 0.45
setupWidgetMethod · 0.45
setupWidgetMethod · 0.45
setupWidgetMethod · 0.45
setupWidgetMethod · 0.45
InstrumentTrackViewMethod · 0.45
modelChangedMethod · 0.45
SampleTrackViewMethod · 0.45

Calls 3

widgetFunction · 0.85
modelChangedFunction · 0.85
updateMethod · 0.45

Tested by 1