| 117 | } |
| 118 | |
| 119 | void YACReaderTableView::performDrag() |
| 120 | { |
| 121 | QLOG_DEBUG() << "performDrag"; |
| 122 | QDrag *drag = new QDrag(this); |
| 123 | drag->setMimeData(model()->mimeData(selectionModel()->selectedRows())); |
| 124 | drag->setPixmap(YACReader::hdpiPixmap(":/images/comics_view_toolbar/openInYACReader.svg", QSize(18, 18))); // TODO add better image |
| 125 | |
| 126 | /*Qt::DropAction dropAction =*/drag->exec(Qt::CopyAction | Qt::MoveAction, Qt::CopyAction); |
| 127 | } |
| 128 | |
| 129 | void YACReaderTableView::dragEnterEvent(QDragEnterEvent *event) |
| 130 | { |
nothing calls this directly
no test coverage detected