Scroll wheel doesn't move knobs/sliders
Bug #603112 reported by
enry
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mixxx |
Fix Released
|
Low
|
ironstorm |
Bug Description
Regression bug: In 1.8 version it is no more possible to control knobs/sliders using scroll wheel while mouse pointer is on them.
Related branches
lp:mixxx/1.8
(Merged)
Changed in mixxx: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The code that originally used to do that behaviour lived in the now retired track.cpp... here is the code that needs a new home:
351 switch (e->type()) { >childAt( ((QWheelEvent *)e)->x(), ((QWheelEvent *)e)->y()); cast<WSliderCom posed *>(targetWidget) != 0 || qobject_cast<WKnob *>(targetWidget) != 0) { cast<WWidget *>(targetWidget )->getValue( ) + (wheelDirection); <targetWidget- >metaObject( )->className( )<<" (target control's value:" << qobject_ cast<WWidget *>(targetWidget )->getValue( ) on<<")" ; cast<WWidget *>(targetWidget )->updateValue( newValue) ; cast<WVisualWav eform *>(targetWidget) != 0) { t->metaObject( )->className( )<<"... "; cast<WOverview *>(targetWidget) != 0) { t->metaObject( )->className( )<<"... ";
352 case QEvent::Wheel: {
353 QWidget* targetWidget;
354 targetWidget = ((QWidget *)obj)-
355 if (targetWidget == 0)
356 {
357 //qDebug() << "Mouse Wheel Event -- Null Target Object.";
358 return true;
359 };
360 double wheelDirection = ((QWheelEvent *)e)->delta() / 120.;
361 if (qobject_
362 double newValue = qobject_
363 // qDebug() << "Mouse Wheel Event -- Destination Object Class Type:"<
363 << " event direction: "<<wheelDirecti
364 qobject_
365 // } else if (qobject_
366 // qDebug() << "Manuiplate a"<<targetWidge
367 // } else if (qobject_
368 // qDebug() << "Manuiplate a"<<targetWidge
369 }
370 return true;
371 }
372 break;
373 // default: qDebug() << "Non SearchEdit Event: " << e->type(); break;
374 default: break;
375 }