Mouse scroll wheel zooming! =o)
[mussa.git] / qui / MussaWindow.cpp
index 80d855d438089c4ead1c6ccf595190c9e801c79f..b0342e40c0e186ba7731a28367735985f424d12d 100644 (file)
@@ -89,6 +89,10 @@ MussaWindow::MussaWindow(MussaRef analysis_, QWidget *parent) :
   connect(zoom, SIGNAL(valueChanged(double)), 
           browser, SLOT(setZoom(double)));
   mussaViewTB->addWidget(zoom);
+  
+  // Mouse Wheel triggered zooming
+  connect(browser, SIGNAL(mouseWheelZoom(double)),
+          zoom, SLOT(setValue(double)));
 
   // threshold range is set in updateAnalysis  
   connect(threshold, SIGNAL(thresholdChanged(int)),