mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-11-03 21:20:31 -05:00 
			
		
		
		
	Fix ValueDialZ to allow keyboard entry of first digit when m_positiveOnly
This commit is contained in:
		
							parent
							
								
									38e6534307
								
							
						
					
					
						commit
						1affacbb25
					
				@ -637,7 +637,7 @@ void ValueDialZ::keyPressEvent(QKeyEvent* value)
 | 
				
			|||||||
        setValue(-m_value);
 | 
					        setValue(-m_value);
 | 
				
			||||||
        update();
 | 
					        update();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    else if ((c >= QChar('0')) && (c <= QChar('9')) && (m_cursor > 0)) // digits
 | 
					    else if ((c >= QChar('0')) && (c <= QChar('9')) && (m_cursor >= (m_positiveOnly ? 0 : 1))) // digits
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        if(m_animationState != 0) {
 | 
					        if(m_animationState != 0) {
 | 
				
			||||||
            m_value = m_valueNew;
 | 
					            m_value = m_valueNew;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user