Format code using clang-format

This commit is contained in:
Luis Ángel San Martín
2019-05-30 19:46:37 +02:00
parent e0eb94e3ae
commit e3ec56aa43
356 changed files with 19824 additions and 21874 deletions

View File

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