mirror of
https://github.com/YACReader/yacreader
synced 2025-07-22 23:15:14 -04:00
Update precompiled pdfium for mac to chromium/3071 and add version info file with minimal build instructions
This commit is contained in:
18
custom_widgets/yacreader_flow.cpp
Normal file
18
custom_widgets/yacreader_flow.cpp
Normal 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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user