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

Method dropEvent

plugins/zynaddsubfx/ZynAddSubFx.cpp:610–621  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

608
609
610void ZynAddSubFxView::dropEvent( QDropEvent * _de )
611{
612 const QString type = StringPairDrag::decodeKey( _de );
613 const QString value = StringPairDrag::decodeValue( _de );
614 if( type == "pluginpresetfile" )
615 {
616 castModel<ZynAddSubFxInstrument>()->loadFile( value );
617 _de->accept();
618 return;
619 }
620 _de->ignore();
621}
622
623
624

Callers

nothing calls this directly

Calls 2

loadFileMethod · 0.45
acceptMethod · 0.45

Tested by

no test coverage detected