mirror of
https://github.com/YACReader/yacreader
synced 2025-07-27 01:15:07 -04:00
completed drag comics from comics view to reading lists
This commit is contained in:
@ -14,6 +14,14 @@ void YACReaderReadingListsView::dragEnterEvent(QDragEnterEvent *event)
|
||||
{
|
||||
YACReaderTreeView::dragEnterEvent(event);
|
||||
|
||||
/*QModelIndex destinationIndex = indexAt(event->pos());
|
||||
if(model()->canDropMimeData(event->mimeData(), event->proposedAction(), destinationIndex.row(), destinationIndex.column(), destinationIndex.parent()))*/
|
||||
event->acceptProposedAction();
|
||||
}
|
||||
|
||||
void YACReaderReadingListsView::dragMoveEvent(QDragMoveEvent *event)
|
||||
{
|
||||
YACReaderTreeView::dragMoveEvent(event);
|
||||
QModelIndex destinationIndex = indexAt(event->pos());
|
||||
if(model()->canDropMimeData(event->mimeData(), event->proposedAction(), destinationIndex.row(), destinationIndex.column(), destinationIndex.parent()))
|
||||
event->acceptProposedAction();
|
||||
|
Reference in New Issue
Block a user