diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-09-21 07:08:27 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-09-21 07:08:27 +0000 |
| commit | 14a930d298596675555f510003c57484e8b1a930 (patch) | |
| tree | 13c74a1d18a7d68a0ffe507be6fc858505483cdc /src/ui/balancebar.cpp | |
| parent | b5b647a2e69aa8bd8d1ec02736a2de7629539834 (diff) | |
| download | qmmp-14a930d298596675555f510003c57484e8b1a930.tar.gz qmmp-14a930d298596675555f510003c57484e8b1a930.tar.bz2 qmmp-14a930d298596675555f510003c57484e8b1a930.zip | |
added possibility to center balance on middle-click (patch by Panagiotis Papadopoulos)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1905 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/balancebar.cpp')
| -rw-r--r-- | src/ui/balancebar.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/balancebar.cpp b/src/ui/balancebar.cpp index 6b4774a2e..903da579d 100644 --- a/src/ui/balancebar.cpp +++ b/src/ui/balancebar.cpp @@ -47,6 +47,11 @@ void BalanceBar::mousePressEvent(QMouseEvent *e) { m_moving = true; press_pos = e->x(); + if(e->button() == Qt::MidButton) + { + m_value = 0; + emit sliderMoved(m_value); + } if(m_pos<e->x() && e->x()<m_pos+11*m_skin->ratio()) { press_pos = e->x()-m_pos; |
