mirror of
https://github.com/YACReader/yacreader
synced 2025-07-21 06:24:39 -04:00
fixed regression causing context menu not being displayed in comics table
This commit is contained in:
@ -126,16 +126,18 @@ void YACReaderTableView::mousePressEvent(QMouseEvent * event)
|
||||
}
|
||||
}
|
||||
|
||||
QMimeData *mimeData = new QMimeData;
|
||||
if(event->button() == Qt::LeftButton)
|
||||
{
|
||||
QMimeData *mimeData = new QMimeData;
|
||||
|
||||
mimeData->setText("comic"); //TODO set the right mime data
|
||||
mimeData->setText("comic"); //TODO set the right mime data
|
||||
|
||||
QDrag *drag = new QDrag(this);
|
||||
drag->setMimeData(mimeData);
|
||||
drag->setPixmap(QPixmap(":/images/openInYACReader.png")); //TODO add better image
|
||||
|
||||
Qt::DropAction dropAction = drag->exec(Qt::CopyAction | Qt::MoveAction, Qt::CopyAction);
|
||||
QDrag *drag = new QDrag(this);
|
||||
drag->setMimeData(mimeData);
|
||||
drag->setPixmap(QPixmap(":/images/openInYACReader.png")); //TODO add better image
|
||||
|
||||
Qt::DropAction dropAction = drag->exec(Qt::CopyAction | Qt::MoveAction, Qt::CopyAction);
|
||||
}
|
||||
}
|
||||
void YACReaderTableView::leaveEvent(QEvent * event)
|
||||
{
|
||||
|
Reference in New Issue
Block a user