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

Method dropEvent

Gui/SequenceFileDialog.cpp:1137–1153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1135}
1136
1137void
1138SequenceDialogView::dropEvent(QDropEvent* e)
1139{
1140 if ( !e->mimeData()->hasUrls() ) {
1141 return;
1142 }
1143
1144 QStringList filesList;
1145 QList<QUrl> urls = e->mimeData()->urls();
1146 QString path;
1147 if (urls.size() > 0) {
1148 path = QtCompat::toLocalFileUrlFixed( urls.at(0) ).path();
1149 }
1150 if ( !path.isEmpty() ) {
1151 _fd->setDirectory(path);
1152 }
1153}
1154
1155void
1156SequenceDialogView::dragEnterEvent(QDragEnterEvent* e)

Callers

nothing calls this directly

Calls 8

toLocalFileUrlFixedFunction · 0.85
atMethod · 0.80
setDirectoryMethod · 0.80
mimeDataMethod · 0.45
urlsMethod · 0.45
sizeMethod · 0.45
pathMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected