| 608 | |
| 609 | |
| 610 | void 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 |