MCPcopy Create free account
hub / github.com/YACReader/yacreader / startDrag

Method startDrag

YACReaderLibrary/grid_comics_view.cpp:447–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445}
446
447void 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
456bool GridComicsView::canDropUrls(const QList<QUrl> &urls, Qt::DropAction action)
457{

Callers

nothing calls this directly

Calls 4

selectedRowsMethod · 0.80
setPixmapMethod · 0.80
execMethod · 0.80
mimeDataMethod · 0.45

Tested by

no test coverage detected