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

Method mimeData

Engine/FileSystemModel.cpp:804–817  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

802}
803
804QMimeData*
805FileSystemModel::mimeData(const QModelIndexList & indexes) const
806{
807 QList<QUrl> urls;
808 for (QList<QModelIndex>::const_iterator it = indexes.begin(); it != indexes.end(); ++it) {
809 if ( (*it).column() == 0 ) {
810 urls << QUrl::fromLocalFile( absolutePath(*it) );
811 }
812 }
813 QMimeData *data = new QMimeData();
814 data->setUrls(urls);
815
816 return data;
817}
818
819/////////////////////////////////////// End overrides ////////////////////////////////////////////////////
820

Callers

nothing calls this directly

Calls 4

columnMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
setUrlsMethod · 0.45

Tested by

no test coverage detected