kopia lustrzana https://github.com/f4exb/sdrangel
Fix ValueDialZ to allow keyboard entry of first digit when m_positiveOnly
rodzic
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;
|
||||||
|
|
Ładowanie…
Reference in New Issue