mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-05 06:25:16 +00:00
improve SIUnitEdit behavior on windows when the value is changed while the widget has the focus
This commit is contained in:
parent
2bbb8792d8
commit
82dc84be8a
1 changed files with 4 additions and 0 deletions
|
|
@ -146,6 +146,10 @@ void SIUnitEdit::setValueQuiet(double value)
|
|||
{
|
||||
_value = value;
|
||||
setPlaceholderText(Unit::ToString(value, unit, prefixes, precision));
|
||||
if(!text().isEmpty()) {
|
||||
// currently editing, update the text as well
|
||||
continueEditing();
|
||||
}
|
||||
}
|
||||
|
||||
void SIUnitEdit::parseNewValue(double factor)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue