| 1147 | } |
| 1148 | |
| 1149 | void |
| 1150 | SequenceDialogView::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 | |
| 1167 | void |
| 1168 | SequenceDialogView::dragEnterEvent(QDragEnterEvent* e) |
nothing calls this directly
no test coverage detected