mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-10-31 13:00:26 -04:00 
			
		
		
		
	Replace deprecated QWheelEvent.delta by angleDelta
This commit is contained in:
		
							parent
							
								
									27f09fa53e
								
							
						
					
					
						commit
						c29d3b6433
					
				| @ -70,7 +70,7 @@ bool GraphicsViewZoom::eventFilter(QObject *object, QEvent *event) | |||||||
|         QWheelEvent* wheelEvent = static_cast<QWheelEvent*>(event); |         QWheelEvent* wheelEvent = static_cast<QWheelEvent*>(event); | ||||||
|         if (QApplication::keyboardModifiers() == m_modifiers) |         if (QApplication::keyboardModifiers() == m_modifiers) | ||||||
|         { |         { | ||||||
|             if (wheelEvent->orientation() == Qt::Vertical) |             if (wheelEvent->angleDelta().y() != 0) | ||||||
|             { |             { | ||||||
|                 double angle = wheelEvent->angleDelta().y(); |                 double angle = wheelEvent->angleDelta().y(); | ||||||
|                 double factor = qPow(m_zoomFactorBase, angle); |                 double factor = qPow(m_zoomFactorBase, angle); | ||||||
|  | |||||||
| @ -386,7 +386,7 @@ void ValueDial::wheelEvent(QWheelEvent *event) | |||||||
| 
 | 
 | ||||||
|     if (m_animationState == 0) |     if (m_animationState == 0) | ||||||
|     { |     { | ||||||
|         if (event->delta() < 0) |         if (event->angleDelta().y() < 0) | ||||||
|         { |         { | ||||||
|             if (event->modifiers() & Qt::ShiftModifier) { |             if (event->modifiers() & Qt::ShiftModifier) { | ||||||
|                 e *= 5; |                 e *= 5; | ||||||
|  | |||||||
| @ -439,7 +439,7 @@ void ValueDialZ::wheelEvent(QWheelEvent* event) | |||||||
|         { |         { | ||||||
|             qint64 e = findExponent(m_hightlightedDigit); |             qint64 e = findExponent(m_hightlightedDigit); | ||||||
| 
 | 
 | ||||||
|             if(event->delta() < 0) |             if(event->angleDelta().y() < 0) | ||||||
|             { |             { | ||||||
|                 if (event->modifiers() & Qt::ShiftModifier) { |                 if (event->modifiers() & Qt::ShiftModifier) { | ||||||
|                     e *= 5; |                     e *= 5; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user