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

Method setModel

src/gui/InstrumentView.cpp:55–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54
55void InstrumentView::setModel( Model * _model, bool )
56{
57 if( dynamic_cast<Instrument *>( _model ) != NULL )
58 {
59 ModelView::setModel( _model );
60 instrumentTrackWindow()->setWindowIcon( model()->descriptor()->logo->pixmap() );
61 connect( model(), SIGNAL( destroyed( QObject * ) ), this, SLOT( close() ) );
62 }
63}
64
65
66

Callers

nothing calls this directly

Calls 2

modelFunction · 0.50
pixmapMethod · 0.45

Tested by

no test coverage detected