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
@ -146,6 +146,10 @@ void SIUnitEdit::setValueQuiet(double value)
|
|||||||
{
|
{
|
||||||
_value = value;
|
_value = value;
|
||||||
setPlaceholderText(Unit::ToString(value, unit, prefixes, precision));
|
setPlaceholderText(Unit::ToString(value, unit, prefixes, precision));
|
||||||
|
if(!text().isEmpty()) {
|
||||||
|
// currently editing, update the text as well
|
||||||
|
continueEditing();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SIUnitEdit::parseNewValue(double factor)
|
void SIUnitEdit::parseNewValue(double factor)
|
||||||
|
Loading…
Reference in New Issue
Block a user