MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / dropMimeData

Method dropMimeData

Gui/SequenceFileDialog.cpp:2619–2636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2617}
2618
2619bool
2620UrlModel::dropMimeData(const QMimeData *data,
2621 Qt::DropAction,
2622 int row,
2623 int,
2624 const QModelIndex &)
2625{
2626 if ( !data->formats().contains( mimeTypes().first() ) ) {
2627 return false;
2628 }
2629 std::vector<QUrl> urls;
2630 for (int i = 0; i < data->urls().count(); ++i) {
2631 urls.push_back( data->urls().at(i) );
2632 }
2633 addUrls(urls, row, true);
2634
2635 return true;
2636}
2637
2638void
2639FavoriteView::dragEnterEvent(QDragEnterEvent* e)

Callers

nothing calls this directly

Calls 5

atMethod · 0.80
containsMethod · 0.45
countMethod · 0.45
urlsMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected