mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
fixed regression causing context menu not being displayed in comics table
This commit is contained in:
parent
db0ed1a05a
commit
22c5226eb2
@ -1139,7 +1139,8 @@ void MainWindowViewer::setUpShortcutsManagement()
|
|||||||
ShortcutsManager::getShortcutsManager().registerActions(allActions);
|
ShortcutsManager::getShortcutsManager().registerActions(allActions);
|
||||||
|
|
||||||
}
|
}
|
||||||
#include "QsLog.h"
|
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
void MainWindowViewer::toggleFitToWidthSlider()
|
void MainWindowViewer::toggleFitToWidthSlider()
|
||||||
{
|
{
|
||||||
if(sliderAction->isVisible())
|
if(sliderAction->isVisible())
|
||||||
@ -1151,8 +1152,8 @@ void MainWindowViewer::toggleFitToWidthSlider()
|
|||||||
sliderAction->move(250,0);
|
sliderAction->move(250,0);
|
||||||
sliderAction->show();
|
sliderAction->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void MainWindowViewer::changeFit()
|
void MainWindowViewer::changeFit()
|
||||||
{
|
{
|
||||||
|
@ -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);
|
QDrag *drag = new QDrag(this);
|
||||||
drag->setMimeData(mimeData);
|
drag->setMimeData(mimeData);
|
||||||
drag->setPixmap(QPixmap(":/images/openInYACReader.png")); //TODO add better image
|
drag->setPixmap(QPixmap(":/images/openInYACReader.png")); //TODO add better image
|
||||||
|
|
||||||
Qt::DropAction dropAction = drag->exec(Qt::CopyAction | Qt::MoveAction, Qt::CopyAction);
|
|
||||||
|
|
||||||
|
Qt::DropAction dropAction = drag->exec(Qt::CopyAction | Qt::MoveAction, Qt::CopyAction);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
void YACReaderTableView::leaveEvent(QEvent * event)
|
void YACReaderTableView::leaveEvent(QEvent * event)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user