Fix ValueDialZ to allow keyboard entry of first digit when m_positiveOnly

pull/1876/head
srcejon 2023-11-02 15:05:44 +00:00
rodzic 38e6534307
commit 1affacbb25
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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;