mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
line 117: #define _WIN64 1 must be removed in ./compressed_archive/libp7zip/CPP/myWindows/StdAfx.h "cannot find -lpulse" compiling under Qt 5.0.2 can be fixed creating a symbolic link from libpulse.so.0 to libpulse.so (further research is needed)
24 lines
608 B
C++
24 lines
608 B
C++
#include "yacreader_flow.h"
|
|
|
|
#include <QMouseEvent>
|
|
|
|
|
|
YACReaderFlow::YACReaderFlow(QWidget * parent,FlowType flowType) : PictureFlow(parent,flowType) {}
|
|
|
|
void YACReaderFlow::mousePressEvent(QMouseEvent* event)
|
|
{
|
|
if(event->x() > (width()+slideSize().width())/2)
|
|
showNext();
|
|
else
|
|
if(event->x() < (width()-slideSize().width())/2)
|
|
showPrevious();
|
|
//else (centered cover space)
|
|
}
|
|
|
|
void YACReaderFlow::mouseDoubleClickEvent(QMouseEvent* event)
|
|
{
|
|
if((event->x() > (width()-slideSize().width())/2)&&(event->x() < (width()+slideSize().width())/2))
|
|
emit selected(centerIndex());
|
|
}
|
|
|