fixes #0002866: Gui::InputField rounds values to 2 digits

This commit is contained in:
wmayer
2018-01-02 12:32:09 +01:00
parent a50b40f8df
commit a6dd02bb75
2 changed files with 7 additions and 0 deletions

View File

@@ -614,6 +614,12 @@ void InputField::focusInEvent(QFocusEvent *event)
QLineEdit::focusInEvent(event);
}
void InputField::focusOutEvent(QFocusEvent *event)
{
this->setText(actQuantity.getUserString());
QLineEdit::focusOutEvent(event);
}
void InputField::keyPressEvent(QKeyEvent *event)
{
if (isReadOnly()) {