diff options
| author | vovanec <vovanec@90c681e8-e032-0410-971d-27865f9a5e38> | 2007-07-29 09:19:41 +0000 |
|---|---|---|
| committer | vovanec <vovanec@90c681e8-e032-0410-971d-27865f9a5e38> | 2007-07-29 09:19:41 +0000 |
| commit | 080507d3a2bc4c1679d1a2cd639e532fb4adbd31 (patch) | |
| tree | 7ac58e4cea61a0f836c326af448eaaa334ecb54e /src/timeindicator.cpp | |
| parent | 8a503d69ecb35d2e9c95885e4d1247011d788442 (diff) | |
| download | qmmp-080507d3a2bc4c1679d1a2cd639e532fb4adbd31.tar.gz qmmp-080507d3a2bc4c1679d1a2cd639e532fb4adbd31.tar.bz2 qmmp-080507d3a2bc4c1679d1a2cd639e532fb4adbd31.zip | |
added song position navigation, context menu over main display
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@45 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/timeindicator.cpp')
| -rw-r--r-- | src/timeindicator.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/timeindicator.cpp b/src/timeindicator.cpp index 3e2b04ee0..d90d03b13 100644 --- a/src/timeindicator.cpp +++ b/src/timeindicator.cpp @@ -19,6 +19,7 @@ ***************************************************************************/ #include <QPainter> #include <QSettings> +#include <QMouseEvent> #include "skin.h" #include "timeindicator.h" @@ -68,12 +69,12 @@ void TimeIndicator::reset() void TimeIndicator::mousePressEvent(QMouseEvent* e ) { - if (m_needToShowTime) + if (m_needToShowTime && e->button() & Qt::LeftButton) { m_elapsed = m_elapsed ? false : true; setTime(m_time); - PixmapWidget::mousePressEvent(e); } + PixmapWidget::mousePressEvent(e); } void TimeIndicator::setSongDuration(int d) |
