Commit 27b37486 authored by Ilkka Ollakka's avatar Ilkka Ollakka

Qt4: pictureflow, activate input if cliked and it's not currently playing one

parent e40d6757
...@@ -941,10 +941,13 @@ void PictureFlow::keyPressEvent(QKeyEvent* event) ...@@ -941,10 +941,13 @@ void PictureFlow::keyPressEvent(QKeyEvent* event)
void PictureFlow::mousePressEvent(QMouseEvent* event) void PictureFlow::mousePressEvent(QMouseEvent* event)
{ {
if (event->x() > width() / 2) if (event->x() > width() / 2 + d->state->slideWidth/2 )
showNext(); showNext();
else else if (event->x() < width() / 2 - d->state->slideWidth/2 )
showPrevious(); showPrevious();
else if ( d->state->model->currentIndex().row() != d->state->centerIndex )
d->state->model->activateItem( d->state->model->index( d->state->centerIndex, 0,
d->state->model->currentIndex().parent() ) );
} }
void PictureFlow::paintEvent(QPaintEvent* event) void PictureFlow::paintEvent(QPaintEvent* event)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment