|
|
@ -18,7 +18,7 @@ BitcoinAmountField::BitcoinAmountField(QWidget *parent): |
|
|
|
amount->setValidator(new QRegExpValidator(QRegExp("[0-9]*"), this)); |
|
|
|
amount->setValidator(new QRegExpValidator(QRegExp("[0-9]*"), this)); |
|
|
|
amount->setAlignment(Qt::AlignRight|Qt::AlignVCenter); |
|
|
|
amount->setAlignment(Qt::AlignRight|Qt::AlignVCenter); |
|
|
|
amount->installEventFilter(this); |
|
|
|
amount->installEventFilter(this); |
|
|
|
amount->setMaximumWidth(100); |
|
|
|
amount->setMaximumWidth(75); |
|
|
|
decimals = new QValidatedLineEdit(this); |
|
|
|
decimals = new QValidatedLineEdit(this); |
|
|
|
decimals->setValidator(new QRegExpValidator(QRegExp("[0-9]+"), this)); |
|
|
|
decimals->setValidator(new QRegExpValidator(QRegExp("[0-9]+"), this)); |
|
|
|
decimals->setAlignment(Qt::AlignLeft|Qt::AlignVCenter); |
|
|
|
decimals->setAlignment(Qt::AlignLeft|Qt::AlignVCenter); |
|
|
|