Add a method to ExtractDelegate for querying if the extraction has been cancelled.

This commit is contained in:
Luis Ángel San Martín
2018-01-06 07:41:27 +01:00
commit c766fedd45
1046 changed files with 103737 additions and 0 deletions

View File

@ -0,0 +1,18 @@
#include "yacreader_flow.h"
#include <QMouseEvent>
YACReaderFlow::YACReaderFlow(QWidget * parent,FlowType flowType) : PictureFlow(parent,flowType) {}
void YACReaderFlow::mousePressEvent(QMouseEvent* event)
{
PictureFlow::mousePressEvent(event, slideSize().width());
}
void YACReaderFlow::mouseDoubleClickEvent(QMouseEvent* event)
{
if((event->x() > (width()-slideSize().width())/2)&&(event->x() < (width()+slideSize().width())/2))
emit selected(centerIndex());
}