comparison widgets/Fader.cpp @ 82:82482231b6b1

* Add file open/save operations to main toolbar * Allow opening any sort of file from toolbar file open function * First cut at on-disc cacheing for decoded mp3/ogg files * Permit un-snapped selection by holding Shift
author Chris Cannam
date Thu, 27 Apr 2006 17:29:19 +0000
parents 705f05ab42e3
children 5d3a483856ff
comparison
equal deleted inserted replaced
81:b9f71b8ae21e 82:82482231b6b1
129 } 129 }
130 130
131 void 131 void
132 Fader::mousePressEvent(QMouseEvent *ev) 132 Fader::mousePressEvent(QMouseEvent *ev)
133 { 133 {
134 if (ev->button() == Qt::MidButton) {
135 setValue(1.0);
136 emit valueChanged(1.0);
137 update();
138 return;
139 }
140
134 int x = ev->x() - 6; 141 int x = ev->x() - 6;
135 const int max_x = 116 - 12; 142 const int max_x = 116 - 12;
136 143
137 int value = x; 144 int value = x;
138 145