when going to decimals field using ./, select it all, so that entry starts from scratch instead of appending to previous value

This commit is contained in:
Wladimir J. van der Laan 2011-06-21 19:14:35 +02:00
parent 50d08dc1e1
commit c92fc340a2

View file

@ -62,6 +62,7 @@ bool BitcoinAmountField::eventFilter(QObject *object, QEvent *event)
if(keyEvent->key() == Qt::Key_Period || keyEvent->key() == Qt::Key_Comma)
{
decimals->setFocus();
decimals->selectAll();
}
}
return false;