aboutsummaryrefslogtreecommitdiff
path: root/src/qt/optionsdialog.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-06-20 21:31:42 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-06-20 21:34:43 +0200
commitf193c57a63d8e66835873ff05ef8028fa87b427f (patch)
treec171e55ab47ed176d454a64441b75045da77739b /src/qt/optionsdialog.cpp
parent18b99e3f69e039f8f431e49c3d1e6c9f96fe3896 (diff)
introduce bitcoin amount field with split amount/decimals, to protect against mistakes (https://forum.bitcoin.org/index.php?topic=19168.0)
Diffstat (limited to 'src/qt/optionsdialog.cpp')
-rw-r--r--src/qt/optionsdialog.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/qt/optionsdialog.cpp b/src/qt/optionsdialog.cpp
index 1bf123b285..1b5b2fefeb 100644
--- a/src/qt/optionsdialog.cpp
+++ b/src/qt/optionsdialog.cpp
@@ -1,5 +1,6 @@
#include "optionsdialog.h"
#include "optionsmodel.h"
+#include "bitcoinamountfield.h"
#include "monitoreddatamapper.h"
#include "guiutil.h"
@@ -31,7 +32,7 @@ private:
QCheckBox *connect_socks4;
QLineEdit *proxy_ip;
QLineEdit *proxy_port;
- QLineEdit *fee_edit;
+ BitcoinAmountField *fee_edit;
signals:
@@ -195,12 +196,9 @@ MainOptionsPage::MainOptionsPage(QWidget *parent):
fee_hbox->addSpacing(18);
QLabel *fee_label = new QLabel(tr("Pay transaction &fee"));
fee_hbox->addWidget(fee_label);
- fee_edit = new QLineEdit();
- fee_edit->setMaximumWidth(100);
+ fee_edit = new BitcoinAmountField();
fee_edit->setToolTip(tr("Optional transaction fee per KB that helps make sure your transactions are processed quickly. Most transactions are 1KB. Fee 0.01 recommended."));
- GUIUtil::setupAmountWidget(fee_edit, this);
-
fee_label->setBuddy(fee_edit);
fee_hbox->addWidget(fee_edit);
fee_hbox->addStretch(1);