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

Method dropEvent

src/tracks/SampleTrack.cpp:392–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390
391
392void SampleTCOView::dropEvent( QDropEvent * _de )
393{
394 if( StringPairDrag::decodeKey( _de ) == "samplefile" )
395 {
396 m_tco->setSampleFile( StringPairDrag::decodeValue( _de ) );
397 _de->accept();
398 }
399 else if( StringPairDrag::decodeKey( _de ) == "sampledata" )
400 {
401 m_tco->m_sampleBuffer->loadFromBase64(
402 StringPairDrag::decodeValue( _de ) );
403 m_tco->updateLength();
404 update();
405 _de->accept();
406 Engine::getSong()->setModified();
407 }
408 else
409 {
410 TrackContentObjectView::dropEvent( _de );
411 }
412}
413
414
415

Callers

nothing calls this directly

Calls 6

getSongFunction · 0.85
setSampleFileMethod · 0.80
loadFromBase64Method · 0.80
setModifiedMethod · 0.80
acceptMethod · 0.45
updateLengthMethod · 0.45

Tested by

no test coverage detected