Skip to content
This repository has been archived by the owner on Dec 8, 2018. It is now read-only.

Commit

Permalink
temporary mouse support
Browse files Browse the repository at this point in the history
git-svn-id: https://pictureflow.googlecode.com/svn/trunk@14 f1dae18b-7a3c-0410-92e9-d7898dd3a7d1
  • Loading branch information
ariya.hidayat committed Jan 31, 2008
1 parent bb121c9 commit df461c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pictureflow-qt/pictureflow.cpp
Expand Up @@ -1211,6 +1211,14 @@ void PictureFlow::keyPressEvent(QKeyEvent* event)
event->ignore();
}

void PictureFlow::mousePressEvent(QMouseEvent* event)
{
if(event->x() > width()/2)
showNext();
else
showPrevious();
}

void PictureFlow::paintEvent(QPaintEvent* event)
{
Q_UNUSED(event);
Expand Down
1 change: 1 addition & 0 deletions pictureflow-qt/pictureflow.h
Expand Up @@ -183,6 +183,7 @@ public slots:
protected:
void paintEvent(QPaintEvent *event);
void keyPressEvent(QKeyEvent* event);
void mousePressEvent(QMouseEvent* event);
void resizeEvent(QResizeEvent* event);

private slots:
Expand Down

0 comments on commit df461c6

Please sign in to comment.