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

Method dropEvent

Gui/SequenceFileDialog.cpp:1149–1165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1147}
1148
1149void
1150SequenceDialogView::dropEvent(QDropEvent* e)
1151{
1152 if ( !e->mimeData()->hasUrls() ) {
1153 return;
1154 }
1155
1156 QStringList filesList;
1157 QList<QUrl> urls = e->mimeData()->urls();
1158 QString path;
1159 if (urls.size() > 0) {
1160 path = QtCompat::toLocalFileUrlFixed( urls.at(0) ).path();
1161 }
1162 if ( !path.isEmpty() ) {
1163 _fd->setDirectory(path);
1164 }
1165}
1166
1167void
1168SequenceDialogView::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