Fixed mouse wheel scroll direction on Qt trace logger and TAS piano roll.
This commit is contained in:
parent
c596593fd0
commit
c72eac9970
|
@ -4566,7 +4566,7 @@ void QPianoRoll::wheelEvent(QWheelEvent *event)
|
|||
|
||||
if (!numPixels.isNull())
|
||||
{
|
||||
wheelPixelCounter -= numPixels.y();
|
||||
wheelPixelCounter += numPixels.y();
|
||||
//printf("numPixels: (%i,%i) \n", numPixels.x(), numPixels.y() );
|
||||
}
|
||||
else if (!numDegrees.isNull())
|
||||
|
@ -4574,7 +4574,7 @@ void QPianoRoll::wheelEvent(QWheelEvent *event)
|
|||
//QPoint numSteps = numDegrees / 15;
|
||||
//printf("numSteps: (%i,%i) \n", numSteps.x(), numSteps.y() );
|
||||
//printf("numDegrees: (%i,%i) %i\n", numDegrees.x(), numDegrees.y(), pxLineSpacing );
|
||||
wheelPixelCounter -= (pxLineSpacing * numDegrees.y()) / (15 * 8);
|
||||
wheelPixelCounter += (pxLineSpacing * numDegrees.y()) / (15 * 8);
|
||||
}
|
||||
//printf("Wheel Event: %i\n", wheelPixelCounter);
|
||||
|
||||
|
|
|
@ -1751,7 +1751,7 @@ void QTraceLogView::wheelEvent(QWheelEvent *event)
|
|||
|
||||
if (!numPixels.isNull())
|
||||
{
|
||||
wheelPixelCounter -= numPixels.y();
|
||||
wheelPixelCounter += numPixels.y();
|
||||
//printf("numPixels: (%i,%i) \n", numPixels.x(), numPixels.y() );
|
||||
}
|
||||
else if (!numDegrees.isNull())
|
||||
|
@ -1759,7 +1759,7 @@ void QTraceLogView::wheelEvent(QWheelEvent *event)
|
|||
//QPoint numSteps = numDegrees / 15;
|
||||
//printf("numSteps: (%i,%i) \n", numSteps.x(), numSteps.y() );
|
||||
//printf("numDegrees: (%i,%i) %i\n", numDegrees.x(), numDegrees.y(), pxLineSpacing );
|
||||
wheelPixelCounter -= (pxLineSpacing * numDegrees.y()) / (15 * 8);
|
||||
wheelPixelCounter += (pxLineSpacing * numDegrees.y()) / (15 * 8);
|
||||
}
|
||||
//printf("Wheel Event: %i\n", wheelPixelCounter);
|
||||
|
||||
|
|
Loading…
Reference in New Issue