Requst payment dialog
This commit is contained in:
@@ -12,7 +12,8 @@ using json = nlohmann::json;
|
||||
|
||||
void MainWindow::setupSendTab() {
|
||||
// Create the validator for send to/amount fields
|
||||
auto amtValidator = new QRegExpValidator(QRegExp("[0-9]{0,8}\\.?[0-9]{0,8}"));
|
||||
amtValidator = new QRegExpValidator(QRegExp("[0-9]{0,8}\\.?[0-9]{0,8}"));
|
||||
|
||||
ui->Amount1->setValidator(amtValidator);
|
||||
|
||||
// Send button
|
||||
@@ -72,8 +73,9 @@ void MainWindow::setupSendTab() {
|
||||
ui->lblMinerFeeUSD->setText(Settings::getUSDFormat(txt.toDouble()));
|
||||
}
|
||||
});
|
||||
|
||||
//Fees validator
|
||||
auto feesValidator = new QRegExpValidator(QRegExp("[0-9]{0,8}\\.?[0-9]{0,8}"));
|
||||
feesValidator = new QRegExpValidator(QRegExp("[0-9]{0,8}\\.?[0-9]{0,8}"));
|
||||
ui->minerFeeAmt->setValidator(feesValidator);
|
||||
|
||||
// Font for the first Memo label
|
||||
@@ -243,8 +245,8 @@ void MainWindow::addAddressSection() {
|
||||
Amount1->setObjectName(QString("Amount") % QString::number(itemNumber));
|
||||
Amount1->setBaseSize(QSize(200, 0));
|
||||
Amount1->setAlignment(Qt::AlignRight);
|
||||
|
||||
// Create the validator for send to/amount fields
|
||||
auto amtValidator = new QRegExpValidator(QRegExp("[0-9]{0,8}\\.?[0-9]{0,8}"));
|
||||
Amount1->setValidator(amtValidator);
|
||||
QObject::connect(Amount1, &QLineEdit::textChanged, [=] (auto text) {
|
||||
this->amountChanged(itemNumber, text);
|
||||
|
||||
Reference in New Issue
Block a user