aboutsummaryrefslogtreecommitdiff
path: root/gui/src/sendcoinsdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/sendcoinsdialog.cpp')
-rw-r--r--gui/src/sendcoinsdialog.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/gui/src/sendcoinsdialog.cpp b/gui/src/sendcoinsdialog.cpp
index a6ab601592..b50ed99099 100644
--- a/gui/src/sendcoinsdialog.cpp
+++ b/gui/src/sendcoinsdialog.cpp
@@ -1,9 +1,9 @@
#include "sendcoinsdialog.h"
#include "ui_sendcoinsdialog.h"
#include "clientmodel.h"
+#include "guiutil.h"
#include "addressbookdialog.h"
-#include "bitcoinaddressvalidator.h"
#include "optionsmodel.h"
#include <QApplication>
@@ -22,13 +22,8 @@ SendCoinsDialog::SendCoinsDialog(QWidget *parent, const QString &address) :
{
ui->setupUi(this);
- /* Set up validators */
- ui->payTo->setMaxLength(BitcoinAddressValidator::MaxAddressLength);
- ui->payTo->setValidator(new BitcoinAddressValidator(this));
- QDoubleValidator *amountValidator = new QDoubleValidator(this);
- amountValidator->setDecimals(8);
- amountValidator->setBottom(0.0);
- ui->payAmount->setValidator(amountValidator);
+ GUIUtil::setupAddressWidget(ui->payTo, this);
+ GUIUtil::setupAmountWidget(ui->payAmount, this);
/* Set initial address if provided */
if(!address.isEmpty())