Mercurial > hg > svgui
comparison widgets/Fader.cpp @ 144:d1e5cd4574a0
...
author | Chris Cannam |
---|---|
date | Fri, 15 Sep 2006 16:36:04 +0000 |
parents | 48d19f278b15 |
children | e7cf6044c2a0 |
comparison
equal
deleted
inserted
replaced
143:bcb6d71be63c | 144:d1e5cd4574a0 |
---|---|
97 | 97 |
98 void | 98 void |
99 Fader::mouseMoveEvent(QMouseEvent *ev) | 99 Fader::mouseMoveEvent(QMouseEvent *ev) |
100 { | 100 { |
101 if (ev->button() == Qt::MidButton) { | 101 if (ev->button() == Qt::MidButton) { |
102 ev->accept(); | |
102 return; | 103 return; |
103 } | 104 } |
104 | 105 |
105 int x = ev->x() - 6; | 106 int x = ev->x() - 6; |
106 const int max_x = 116 - 12; | 107 const int max_x = 116 - 12; |