aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/qt/bitcoinamountfield.cpp1
-rw-r--r--src/qt/bitcoinamountfield.h2
-rw-r--r--src/qt/forms/sendcoinsdialog.ui6
3 files changed, 4 insertions, 5 deletions
diff --git a/src/qt/bitcoinamountfield.cpp b/src/qt/bitcoinamountfield.cpp
index e475441f13..19fa230183 100644
--- a/src/qt/bitcoinamountfield.cpp
+++ b/src/qt/bitcoinamountfield.cpp
@@ -26,6 +26,7 @@ BitcoinAmountField::BitcoinAmountField(QWidget *parent):
layout->addWidget(new QLabel(QString(".")));
layout->addWidget(decimals);
layout->addStretch(1);
+ layout->setContentsMargins(0,0,0,0);
setFocusPolicy(Qt::TabFocus);
setLayout(layout);
diff --git a/src/qt/bitcoinamountfield.h b/src/qt/bitcoinamountfield.h
index 2171578eea..67304c8b3a 100644
--- a/src/qt/bitcoinamountfield.h
+++ b/src/qt/bitcoinamountfield.h
@@ -7,6 +7,8 @@ QT_BEGIN_NAMESPACE
class QLineEdit;
QT_END_NAMESPACE
+// Coin amount entry widget with separate parts for whole
+// coins and decimals.
class BitcoinAmountField: public QWidget
{
Q_OBJECT
diff --git a/src/qt/forms/sendcoinsdialog.ui b/src/qt/forms/sendcoinsdialog.ui
index 3aaec1b53c..b88839a7ca 100644
--- a/src/qt/forms/sendcoinsdialog.ui
+++ b/src/qt/forms/sendcoinsdialog.ui
@@ -91,11 +91,7 @@
</widget>
</item>
<item row="4" column="1">
- <widget class="BitcoinAmountField" name="payAmount" native="true">
- <property name="focusPolicy">
- <enum>Qt::TabFocus</enum>
- </property>
- </widget>
+ <widget class="BitcoinAmountField" name="payAmount" native="true"/>
</item>
</layout>
</item>