diff 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
line wrap: on
line diff
--- a/widgets/Fader.cpp	Thu Apr 27 11:49:34 2006 +0000
+++ b/widgets/Fader.cpp	Thu Apr 27 17:29:19 2006 +0000
@@ -131,6 +131,13 @@
 void
 Fader::mousePressEvent(QMouseEvent *ev)
 {
+    if (ev->button() == Qt::MidButton) {
+        setValue(1.0);
+        emit valueChanged(1.0);
+        update();
+        return;
+    }
+
     int x = ev->x() - 6;
     const int max_x = 116 - 12;