| 445 | } |
| 446 | |
| 447 | void GridComicsView::startDrag() |
| 448 | { |
| 449 | auto drag = new QDrag(this); |
| 450 | drag->setMimeData(model->mimeData(selectionHelper->selectedRows())); |
| 451 | drag->setPixmap(hdpiPixmap(":/images/comics_view_toolbar/openInYACReader.svg", QSize(18, 18))); // TODO add better image |
| 452 | |
| 453 | /*Qt::DropAction dropAction =*/drag->exec(Qt::CopyAction | Qt::MoveAction, Qt::CopyAction); |
| 454 | } |
| 455 | |
| 456 | bool GridComicsView::canDropUrls(const QList<QUrl> &urls, Qt::DropAction action) |
| 457 | { |
nothing calls this directly
no test coverage detected